Replies: 3 comments 3 replies
-
Is it supported by vue-docgen-api? That's what we use under the hood to extract code comments into descriptions. If it's supported there and not in Storybook, then it's a bug on our side. If it's not supported there, then you should be able to use this workaround: export default {
argTypes: {
variant: {
options: Variant,
description: 'Some description here',
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
@Mokkapps were you able to solve this issue with Vue 3 and Storybook? I currently have the same problem. Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
-
Did you try comment on emits ? emits: [
/**
* update count value
* @param {number} count new count value
*/
'counter-update'
] |
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
-
I'm using Storybook with Vue 3 and I want to have a description for my emit events inside Storybook
Docs
tab.Currently it only shows
unknown
:Do you have any idea how I could show any description text in there?
The component code:
The story code:
The whole source code is available at: https://github.com/Mokkapps/vue-3-storybook-demo
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions