You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this moment dealing with compoundVariants is tedious. You need to declare all variants beforehand even if all of them are empty.
It becomes even worse when you need multiple cva calls in your component, like this:
This discussion was converted from issue #319 on November 21, 2024 14:50.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
At this moment dealing with
compoundVariants
is tedious. You need to declare allvariants
beforehand even if all of them are empty.It becomes even worse when you need multiple
cva
calls in your component, like this:It would be very nice if
compoundVariants
evolved from just consumer of variants to provider of variants. Like that:Beta Was this translation helpful? Give feedback.
All reactions