Passing through slots in Vue
Passing through slots in Vue
Every Vue component has a special $slots object with all of your slots in it The default slot has the key default , and any named slots use their name as
Using named slots
vue named slots Named slots In this example we have 3 slots The body slot is a scoped slot, passing on a slot prop As with the earlier examples, it could pass along the
vue3 slot A slot> outlet without name implicitly has the name default To provide content to named slots, we need to use the v-slot directive on a
Regular
price
137.00 ₹ INR
Regular
price
137.00 ₹ INR
Sale
price
137.00 ₹ INR
Unit price
/
per