Compose components with slots in Svelte 3
Compose components with slots in Svelte 3
In such a scenario, data is passed using slots to render it as an HTML tag to a specific child The slot is used as a tag in the child component while defining
Interactive example Svelte apps
svelte slot props p slot=footer> Copyright 2020 Svelte Brazil p> Widget> FancyList {items}> div slot=item let:item> {}
svelte pass props to slot Slots are a major feature of Svelte and the fact that there are so many docs about using Svelte + SvelteKit with Storybook but no discussion of using slots is
Regular
price
195.00 ₹ INR
Regular
price
195.00 ₹ INR
Sale
price
195.00 ₹ INR
Unit price
/
per