Replies: 1 comment 1 reply
-
if you really hate the redundant array, you could replace export const size = {
small: sprinkles({}),
medium: sprinkles({}),
large: sprinkles({})
} it's still type-safe since it's just an object. <div className={size['extraLarge']} /> // TypeError but I've no idea what VE |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
When I try to use sprinkles with the styleVariants, I need to wrap it in an array:
I think the array is redundant here. It would be better as in the example below:
Am I right or not? Perhaps some implementation details prevent it. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions