1
/
of
1
Slots in Vue 3 Deep Dive
Slots in Vue 3 Deep Dive
The best way to organize a slot-based component system is to name your slots This way you can make sure you're injecting content into the right part of your
So far, we've been working with components that only required a single, default slot But, of
vue slot props This means that we can use the presence of our slot's name in this object as a boolean value to conditionally do things in our UI
vue slot The basic concept of slots remains the same: they allow parent components to pass content to child components However, Vue 3 introduces named
Regular
price
172.00 ₹ INR
Regular
price
172.00 ₹ INR
Sale
price
172.00 ₹ INR
Unit price
/
per
Share
![vue slot name](10057.jpg)