Typing reusable render function in Vue, storybook v7 #22157
Unanswered
josip2312
asked this question in
Documentation
Replies: 1 comment
-
A very late answer here, but I had the exact same problem and what I did was add the render function to the Default story and in all my other stories use: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is no example in the documentation on how to create a reusable render function with the CSF 3 syntax -> https://storybook.js.org/docs/vue/writing-stories/args
Example of what I mean:
If I do this I will get proper typing for the
args
, but not sure how to type the default render functionargs
parameterBeta Was this translation helpful? Give feedback.
All reactions