Named slots • Svelte Examples
Named slots • Svelte Examples
Components can be placed in a named slot using the syntax Component slot=name > In order to place content in a slot without using a wrapper element, you
svelte --> div> slot> this fallback content will be rendered when no content is provided, like in the first example slot> div> !--
svelte slot props The slot> is required and is similar to the {{outlet}} in Ember, which allows child routes to render content into a specific area of the
svelte slot Skip to main content svelte | Examples Ctrl K DocsExamplesREPL Slot fallbacks thumbnail Slot fallbacks · Named slots thumbnail Named
Regular
price
121.00 ₹ INR
Regular
price
121.00 ₹ INR
Sale
price
121.00 ₹ INR
Unit price
/
per