We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt
3.0.2
https://github.com/nuxt/ui/blob/v3/src/theme/button.ts
I want to customize a button variant by size, trailing and square params. It works, but the types are broken.
size
trailing
square
The line in the compoundVariants: { size: 'md', trailing: true, square: false, class: { trailingIcon: '-mr-1' } }
compoundVariants
{ size: 'md', trailing: true, square: false, class: { trailingIcon: '-mr-1' } }
Errors: Type '{ trailingIcon: string; }' is not assignable to type 'string'
Type '{ trailingIcon: string; }' is not assignable to type 'string'
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
3.0.2
Reproduction
https://github.com/nuxt/ui/blob/v3/src/theme/button.ts
Description
I want to customize a button variant by
size
,trailing
andsquare
params. It works, but the types are broken.The line in the
compoundVariants
:{ size: 'md', trailing: true, square: false, class: { trailingIcon: '-mr-1' } }
Errors:
Type '{ trailingIcon: string; }' is not assignable to type 'string'
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: