Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bit-mask
· 3y ago · 0 comments
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...
Comments
[–]
anujkosambi
3y ago
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