Replies: 1 comment
-
|
Did you manage to find an answer? I'm working on that specific use-case aswell |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine you have a
Buttoncomponent, that takes optional{ leftIcon?: Icon; rightIcon?: Icon: }props. If either of these is supplied, you'd like to apply classes that modify the left and/or right padding of the button respectively. Is there any way to create a variants definition that can apply classes based on any non-nullable value being supplied to those props?Beta Was this translation helpful? Give feedback.
All reactions