Named slots • Svelte Examples
Named slots • Svelte Examples
Svelte slots are used to make child components more flexible Whereas props allow us to pass
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
slot dress Send data parent to child: Props · Render HTML inside your components: Slots · Child notify event to its parent with optional data: Events
slot real casino Snippets can be passed to other components as props or children, similarly to how you would use a slot > tag They even accept parameters to
Regular
price
164.00 ₹ INR
Regular
price
164.00 ₹ INR
Sale
price
164.00 ₹ INR
Unit price
/
per