IF
<Component class="foo bar" />
?Если нужно именно навесить класс, то можно так:
1. https://svelte.dev/repl/51ed74cf9317467d917b38e9283aa7de?version=3.20.1
2. https://svelte.dev/repl/df1cc65db2554498874769f26b6e557e?version=3.20.1
Size: a a a
IF
<Component class="foo bar" />
?PM
qt
PM
qt
T
PM
PM
PM
qt
T
alternatives do-nothing
https://github.com/sveltejs/rfcs/blob/style-properties/text/0000-style-properties.mdqt
AY
qt
AY
T
qt
PM
qt
PM