3 ms·
You can pass class names to child components in Svelte if you bind the child component's props with restProps: https://svelte.dev/repl/c16aa7a6ef714067af6f5eee0
by bit-mask 4y 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?version=3.29.0 https://svelte.dev/repl/c16aa7a6ef714067af6f5eee0a0f453c?ver...
- anujkosambi 4y agoYes, 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