Variants
Creating Variants
To kick things off, let’s build a “basic” button
component, using cva
to handle our variant’s classes
Compound Variants
Variants that apply when multiple other variant conditions are met.
Targeting Multiple Variant Conditions
Disabling Variants
Want to disable a variant completely? Provide an option with a value of null
.
If you’re stuck on naming, we recommend setting an explicit "unset"
option (similar to the CSS keyword).