Get template attributes/props per slot #12626
Unanswered
JulianWowra
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I haven't found any documentation or or other persons with similar intentions.
I want to build a tab component where I can assign properties like icons to the tabs (templates) directly. It is best explained with an example:
App.vue
ComponentTabs.vue
How can the arguments be processed in the component? How can you establish type safety (TypeScript)?
In my opinion, creating a component that receives the props is not the solution. Or what do you think?
I will be happy to provide you with a minimal reproduction of the actual state. Vue Playground
Original question: nuxt/nuxt#30033
Related: https://github.com/orgs/vuejs/discussions/10282
Beta Was this translation helpful? Give feedback.
All reactions