#Passing props to <Slot />?
8 messages · Page 1 of 1 (latest)
Hello!
From what I have seen it's not possible to pass props to slot
hi but in other frameworks is able to do that.. its very useful . wonder if its a qwik limitation.
Which framework allows you to pass props to a Slot?
I know that in Vue you can pass props to slot but I think it's the only one I have seen it
Can't pass props to slot BUT it sounds like your use case is perfect for using useContext/Provider instead. Even easier to work with!
Sveltekit has this. https://svelte.dev/tutorial/slot-props
Agreed, it sounds like what you actually want here is context - slot props don’t go multiple component boundaries deep AFAICT