2 ways to pass data into Svelte slots
Slots are essentially placeholders within a component that can be filled with custom content They provide a way to dynamically inject content into a component
Component composition Checking for slot content svelte get slot content Slots are essentially placeholders within a component that can be filled with custom content They provide a way to dynamically inject content into a component svelte check if slot is empty You starts with let: + props name passed to the slot · The props name variable will then be available to your slotted content · The let binding
sveltekit slot I figured out the solution, in the parent component I had to expose attributes and pass that into the slot script>
Regular
price
185.00 ₹ INR
Regular
price
Sale
price
185.00 ₹ INR
Unit price
/
per