dynamic slot name vue 3
Official Vue.js Master Class: 2024 Edition
In this Vue tutorial we learn how one component can embed content in another with slots. ... However, to ensure that the content we provide in the parent doesn’t override the wrong slot in the child, Vue requires us to name each slot element.
Slots — Vue.js
With Vue >= 3.3, you can now use blog.vuejs.org/posts/vue-3-3#defineoptions to set a name without a separate script block 🙂.
vue.js - My dynamic component (layout) doesn't work with named ...
How to work with dynamic named components. ... While the slots API has changed slightly in Vue 3 many of the concepts taught in this course are the same.