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
Some components consist of multiple parts, so component styling should reflect that.
Possible usage:
{% set button = cvaMultiPart({ base: 'block outline-none', icon: 'text-[1.5em]', }, { variants: { display: { primary: { base: 'bg-blue-500 text-white', }, secondary: { base: 'bg-purple-500 text-white', icon: 'opacity-50', }, }, size: { base: 'py-2 px-4 text-base', large: 'py-3 p-6 text-lg', }, }, defaultVariants: { display: 'primary', size: 'base', }, }) %} {% set buttonStyle({ size: 'large' }) %} <button class="{{ buttonStyle.button }}"> <svg class="{{ buttonStyle.icon }}"> <use xlink:href="#icon-check" /> </svg> Click me </button>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Some components consist of multiple parts, so component styling should reflect that.
Possible usage:
The text was updated successfully, but these errors were encountered: