Replies: 1 comment
-
Whoops, looks like a discussion like this already exists. My bad! |
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.
-
Right now, if I wanted to pass
styles.button
andstyles.increment
classes to a button, I have two options:or
The latter is just... eugh. The former is better, but something about using string interpolation rubs me the wrong way. I know the imported CSS classes end up being just strings, but there is a weird feeling of losing some type safety, somehow.
I came to use
recently, and it got me thinking: perhaps Solid could support just straight out passing an array into the
class
prop?Imagine:
or
Beta Was this translation helpful? Give feedback.
All reactions