You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: