svelte-native icon indicating copy to clipboard operation
svelte-native copied to clipboard

Support Svelte conditional classes

Open jasongitmail opened this issue 2 years ago • 0 comments

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!

jasongitmail avatar Dec 25 '23 22:12 jasongitmail