Hacker News new | ask | show | jobs
by bit-mask 1371 days ago
You can pass class names to child components in Svelte if you bind the child component's props with restProps: https://svelte.dev/repl/c16aa7a6ef714067af6f5eee0a0f453c?ver...
1 comments

Yes, I know that, but I think you have to use :global operator and combining it with parent scope class, which is extra steps in Svelte