1
/
of
1
Everything you need to know about Svelte Slots
Everything you need to know about Svelte Slots
Props are data that is passed to a component On general, the data is just raw data but you can pass things like functions or what not Unlike a
Diving further into Svelte and SvelteKit we are looking at 'slots' today Svelte Tutorial
svelte slot 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 In the example below, you can access the currentValue and setValue props from the BarChartRace default slot Slots also act as an escape
Regular
price
128.00 ₹ INR
Regular
price
128.00 ₹ INR
Sale
price
128.00 ₹ INR
Unit price
/
per
Share
![svelte slot props](10049.jpg)