1
/
of
1
17 Svelte Tutorial Slot Props
17 Svelte Tutorial Slot Props
To pass children elements to a Svelte component, you must use the HTML directive This works for HTML elements and nested Svelte components
In Svelte, we can pass data from parent to child components using props Props are properties that allow the parent to pass data to its child
svelte slot props Svelte component, you will feel right at home As you can see in the example below, pages receive data from your application's controllers as props Vue 2
svelte pass props to slot pass any other elements through the BarChartRace slot You can even props from the BarChartRace default slot Slots also act as an
Regular
price
118.00 ₹ INR
Regular
price
118.00 ₹ INR
Sale
price
118.00 ₹ INR
Unit price
/
per
Share
![svelte pass props to slot](10026.jpg)