Recommended approach to multi-component variants? #243
Unanswered
Sid-Turner-Ellis
asked this question in
Q&A
Replies: 3 comments 5 replies
-
Chakra UI has a nice API for this: https://chakra-ui.com/docs/styled-system/component-style#usemultistyleconfig-api |
Beta Was this translation helpful? Give feedback.
1 reply
-
Writing a bit more here, just haven't merged yet |
Beta Was this translation helpful? Give feedback.
3 replies
-
I think what you really want is PandaCSS slot recipes: https://panda-css.com/docs/concepts/slot-recipes or if you don't want css-in-js, https://www.tailwind-variants.org/docs/introduction#split-components-into-multiple-slots |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
What's the recommended approach for variants that have multiple child components?
e.g.
I'm assuming we should just duplicate the variants in two separate cva calls but wanted to double check
Beta Was this translation helpful? Give feedback.
All reactions