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
VariantProps
Hi 👋🏻
I was learning how to use cva in Vue and noticed below code:
interface ButtonVariantProps extends VariantProps<typeof buttonVariants> {} interface Props extends PrimitiveProps { variant?: ButtonVariantProps['variant'] size?: ButtonVariantProps['size'] as?: string }
should be written like
// Let's ignore optional for now interface Props extends PrimitiveProps { as?: string }
So I tried it in fresh vue project and found that we get Vue type error:
Is anyone know what's causing this?
The text was updated successfully, but these errors were encountered:
Hi @jd-solanki
defineProps
ExtractPropTypes
Sorry, something went wrong.
No branches or pull requests
Describe the feature
Hi 👋🏻
I was learning how to use cva in Vue and noticed below code:
should be written like
So I tried it in fresh vue project and found that we get Vue type error:
Is anyone know what's causing this?
Additional information
The text was updated successfully, but these errors were encountered: