Conditional Slots • Svelte Examples
Conditional Slots • Svelte Examples
pass data to both components
Svelte allows you to pass data to slots using slot props You use the slot props in situations where you want to pass some data from the child
svelte pass props to slot BTW, sveltekit seems have changed some features in the svelte, like this slot props? If you want to pass dynamic data from the layout
sveltekit slot pass props BOTH into a slotted component AND back out to the parent Svelte Tutorial
Regular
price
164.00 ₹ INR
Regular
price
164.00 ₹ INR
Sale
price
164.00 ₹ INR
Unit price
/
per