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
Variants (say for buttons) are a convenient shortcut to apply a set of styles to a component. But this is currently limited to predefined variants.
A way to define custom variants.
Not sure, but wrapping a component in a custom component that implements the styles is an option.
Vue Tailwind implements such a feature (see https://www.vue-tailwind.com/docs/theming#variants).
The text was updated successfully, but these errors were encountered:
You can already define your own variants using the app.config.ts: https://ui.nuxt.com/getting-started/theming#components
app.config.ts
export default defineAppConfig({ ui: { button: { variant: { subtle: '' } } } })
Sorry, something went wrong.
How in this case extend the type hints?
@benjamincanac and same question for the color. In color case ts will complain about it
No branches or pull requests
Is your feature request related to a problem? Please describe.
Variants (say for buttons) are a convenient shortcut to apply a set of styles to a component. But this is currently limited to predefined variants.
Describe the solution you'd like
A way to define custom variants.
Describe alternatives you've considered
Not sure, but wrapping a component in a custom component that implements the styles is an option.
Additional context
Vue Tailwind implements such a feature (see https://www.vue-tailwind.com/docs/theming#variants).
The text was updated successfully, but these errors were encountered: