Cascading wrapper components in Vue 3 #6341
Answered
by
tony19
straurob
asked this question in
Help/Questions
-
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.
Answered by
tony19
Jul 23, 2022
Replies: 1 comment 1 reply
-
Yes, it's necessary to repeat the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
straurob
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.