svelte-native
svelte-native copied to clipboard
Support Svelte conditional classes
I noticed that Svelte's conditional classes like class:selected={$foo === 'abc'} are not supported. Using this causes a build error.
I've worked around this pretty easily using:
class={"foo bar" + (isSelected ? ' selected' : ' ')}
So maybe it's not worth supporting, but fyi.
Thanks for building this!