Replies: 2 comments 4 replies
-
I personally use FWIW I've seen this same pattern (custom property + using style to set it) used in styled components as well. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
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
-
I want to set the raw value to props because I cannot pre-determine every spacing CSS value to use.
With styled-components I can type width as a number, and handle CSS like this:
But can I do this with vanilla-extract?
I review all the docs, but sprinkles and recipes cannot handle this situation so far.
It seems like assignInlineVars may help… but not confident with this idea…
thank you for reading this!
Beta Was this translation helpful? Give feedback.
All reactions