Skip to product information
1 of 1

svelte pass props to slot

svelte pass props to slot

Six ways to share data between Svelte 3 components svelte pass props to slot Svelte allows you to pass data to slots using slot props You use the slot props in situations where you want to pass some data from the child svelte slot props Note that props are one-way — to get data from a child component into a parent component, use bindings Composing with slot> A component can contain a slot>

svelte slot Slotspermalink Slot and slot prop types are inferred from the types of the slot props passed to them: script lang=ts> export let name: string; script>

Regular price 102.00 ₹ INR
Regular price Sale price 102.00 ₹ INR
Sale Sold out
View full details