1
/
of
1
Creating a Svelte Tabs component with Slot props
Creating a Svelte Tabs component with Slot props
We can use slot props to pass data from the child to parent using the let: directive of slots This helps us set up separation of concerns
It looks like you're expecting to receive a slot prop that you aren't passing through Play with the slot props tutorial and see if you can
svelte check if slot is empty slot props from the HOC and explicity pass them into cat --> !-- Notice the event listener is on the cat, which is explicit on the one hand but also
svelte pass props to slot Props Prop, Type, Default, Description items, any, Array of items --> svelte:fragment slot=empty > Select> Events Event Name
Regular
price
136.00 ₹ INR
Regular
price
136.00 ₹ INR
Sale
price
136.00 ₹ INR
Unit price
/
per
Share
![svelte pass props to slot](10049.jpg)