Slot - 김인연의 개발 공부
Slot - 김인연의 개발 공부
Composition means allowing your components to contain other components or HTML elements Slots are made possible in Svelte by using the slot>
When your Svelte app starts to get bigger, you'll find that you Tab> p slot=content>I am the Tab 1 contentp> Tab> Tab> p
svelte slot props 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
svelte get slot content The special Svelte element svelte:fragment> looks spooky but it just allows you to pass content to a slot without an extra div> wrapper 🐿️ As
Regular
price
180.00 ₹ INR
Regular
price
180.00 ₹ INR
Sale
price
180.00 ₹ INR
Unit price
/
per