Vue 3 — Named Slots and Slot Props
Vue 3 — Named Slots and Slot Props
Slots and Named Slots A regular Slot is a way for a parent component to send in some information to a child component outside of the standard Props mechanism
The slotProps object is used as props to render the scoped slot from a Portal> Source html portal to=destination
vue check if slot is empty It tells Vue which named slot to use, exposes the passed props, which we can destructure This could be a method or data and works a bit like a
vue 3 slot When crafting components with you can go multiple ways You can go with the props based approach or you can choose the slot based
Regular
price
142.00 ₹ INR
Regular
price
142.00 ₹ INR
Sale
price
142.00 ₹ INR
Unit price
/
per