Slots 3 : rvuejs
Naming multiple slots and getting props from can name our slots so that we can have multiple slots in one component
Vue JS 3 Tutorial - 38 - Named Slots vue 3 named slots Naming multiple slots and getting props from can name our slots so that we can have multiple slots in one component vue 3 named slots To use named scoped slots we need to name the slots inside the component with the 'name' attribute And to receive data from a named slot we need to refer to
vue3 slot 3p> div> script> CSS: #app { text-align: center; margin: 20px In the component, we will name our slots as follows:
Regular
price
105.00 ₹ INR
Regular
price
Sale
price
105.00 ₹ INR
Unit price
/
per