Replies: 2 comments 11 replies
-
Misunderstood the question, apologies! |
Beta Was this translation helpful? Give feedback.
-
I've created an approach to solve this issue, not knowing that cva existed (so I've partly reinvented the wheel). I believe that we should not use
The contents of the trim object (i.e. the actual tailwindcss styles) come from a style-object. These are all minor differences from cva (the approach is basically the same), but using If you want to discuss, please let me know. ps Link to my blog post regarding this topic: https://maartennieber.com/posts/styling-system-style-objects-scss/chapter-4 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have encountered many places where component, for example some banner, need adjustments on more than one structure level but is based on same params. Right now we can create multiple cva and keep needed variants consistent but what if we could support multiple output within single cva and single variant names.
For example, instead of creating two separate cva with same variants:
we could write it like that
Many thanks,
Mateusz
Beta Was this translation helpful? Give feedback.
All reactions