compoundVariants

A CVA option that adds classes only when a specific combination of variants is chosen, such as intent danger with size lg.

In more detail

Ordinary variants each add their own classes. A compound variant covers the cases where the combination needs something extra that neither variant adds alone.

Related terms

Taught in

References