Cascading wrapper components in Vue 3 #6341
-
|
Given the following "wrapper component" DefaultButton.vue Now if I'd like to create another wrapper for SomeIconButton.vue |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Yes, it's necessary to repeat the |
Beta Was this translation helpful? Give feedback.
Yes, it's necessary to repeat the
v-bind="$attrs"and the slot template at each level of nesting if you want to continue forwarding the attrs/slots to the inner components.