Vue 3 — Named Slots and Slot Props vue slot props In terms of final output, slots perform a similar function as props in Vue — getting data from a parent component to a child component Slots are also helpful vue 3 slot You can only access slot props inside the slot, it is a part of the component encapsulation Though the foo here is inside the script, it's still a part of
vue slot class Similar to props that pass data and functions from parent to child components, slots allow you to pass template content from parent to child
Regular
price
148.00 ₹ INR
Regular
price
Sale
price
148.00 ₹ INR
Unit price
/
per