You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class on any component (including <svelte:component>) is just another prop. It doesn't have anything to do with the HTML class attribute, and doesn't enter into styling.
Ah, I see. It looks like I'm just encountering another variation of #2870, and this is something not currently desired in svelte core. No worries! Thanks for the quick response! Seems this workaround may do the job for me.
Describe the bug
I'm fairly new to Svelte, so bear with me if this isn't really a bug, but if I try to pass a class to a component using
<svelte:component />
I would expect to be able to pass a class to a component this way and everything compile per usual.
Reproduction
quick repro: https://svelte.dev/repl/d3b523dbff6c48c4b8ec9ec2f4eb3a0d
general idea:
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: