Slot and Named Slot in Vue Js
Slot and Named Slot in Vue Js
v-slot can only be used on a template> element or the component receiving the slot Otherwise, Vue throws a compile error See Example 1 below v-slot is used
slot>tag But we must need a controlled replacement Named slots are usually Vue logo” src=” assets”> NamedSlot> template v-slot:header
vue default slot What is a slot? A slot is a reserved space provided by Vue to display content from one component to another It loads outlet content into the
vue check if slot has content Slot components can declare their own props, these props are then accepted at the top level FormulateInput and passed to the appropriate slot component as a
Regular
price
135.00 ₹ INR
Regular
price
135.00 ₹ INR
Sale
price
135.00 ₹ INR
Unit price
/
per