Svelte Slots
Svelte Slots
I figured out the solution, in the parent component I had to expose attributes and pass that into the slot script>
Page Svelte component has additional slots for custom elements: default - element will be inserted as a child of page-content, if page-content
svelte check if slot is empty slot='after-input' : Placed after the search input For arbitrary content like icons or temporary messages Receives props selected: Option , disabled:
svelte get slot content Page Svelte component has additional slots for custom elements: default - element will be inserted as a child of page-content, if page-content
Regular
price
112.00 ₹ INR
Regular
price
112.00 ₹ INR
Sale
price
112.00 ₹ INR
Unit price
/
per