-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combining variants and custom props #1930
Labels
Comments
I also ran into this when creating a custom prop for fill color on an SVG component. I created a custom prop for fill to hook it up to the colors theme obj. It works as expected when you pass in a color via the prop of that component, but it doesn't work when trying to define different fills as variants. Seems to be the same issue as #810 |
If i understand you right, you can do it in next way,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yo ✌️
I have had issues trying to use custom props inside tof a variant.
Using
rounded
inside variants does not work when settingvariant
on the BoxBut setting the custom prop directly on the Box like this work.
Example project here: CodeSandbox
How can I combine custom props and variants?
The text was updated successfully, but these errors were encountered: