Polymorphic components with cva #107
lennerd
started this conversation in
Show and tell
Replies: 1 comment
-
Can we avoid repeating host element("button")? There is a library called windstitch that does exactly this but looks like not maintained anymore. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I totally get it why this library does not support polymorphic React components.
Nevertheless, for everyone who is searching for a way to use cva in React in a polymorphic way:
Can be used like this:
@joe-bell thank you for your awesome work and this great library!
Beta Was this translation helpful? Give feedback.
All reactions