1
/
of
1
Named slots • Svelte Examples
Named slots • Svelte Examples
When you have an app that might have to render various instances of a component, slot forwarding with #Svelte can make the process easier
For example, you could imagine you make a Svelte Component that's a dialog frame Inside the dialog frame you want to put custom dialogs, like
svelte slot The svelte:fragment> element allows you to place content in a named slot without wrapping it in a container DOM element This keeps the flow layout of your
svelte check if slot is empty Interactive example Svelte apps
Regular
price
136.00 ₹ INR
Regular
price
136.00 ₹ INR
Sale
price
136.00 ₹ INR
Unit price
/
per
Share
![svelte slot](10022.jpg)