Skip to content
New issue

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

Incorrect compound button variants types #3738

Open
MichailShcherbakov opened this issue Mar 30, 2025 · 0 comments
Open

Incorrect compound button variants types #3738

MichailShcherbakov opened this issue Mar 30, 2025 · 0 comments
Labels
bug Something isn't working triage v3 #1289

Comments

@MichailShcherbakov
Copy link

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 and square 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

@MichailShcherbakov MichailShcherbakov added bug Something isn't working triage v3 #1289 labels Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant