[Proposal] Shorthand for setting classes and inline styles using argments #14338
rosyatrandom
started this conversation in
Ideas
Replies: 0 comments
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.
-
Simply because setting conditional classes and individual inline styles are both slightly annoying, I propose a completely unnecessary shorthand:
You're asking 'BUT WHY?'
The answer is purely: I just prefer it slightly. Sorry.
And if we were to take this all seriously, for some reason, a shorthand for
class:fooandstyle:barwould be nice. Looking at readily available symbols, let's just say^fooand$barfor the example:<AnyElement $some-prop="some-val" ^some-class="some-predicate"/>Beta Was this translation helpful? Give feedback.
All reactions