Slot props • Svelte Examples
Slot props • Svelte Examples
In the above example, the child component defines a slot that expects a function called myFunction to be passed as a prop The myFunction prop
Root Groups Slot and Input parts This component is based on the div element and supports common margin props
slot mewallet Naming multiple slots and getting props from can name our slots so that we can have multiple slots in one component
slot background Default scoped slot If the slot is a scoped slot then we'll need to pass on the slot props too: template
Regular
price
180.00 ₹ INR
Regular
price
180.00 ₹ INR
Sale
price
180.00 ₹ INR
Unit price
/
per