Replies: 3 comments 3 replies
-
|
OMG I found it! (paramers.docs.description) yay! |
Beta Was this translation helpful? Give feedback.
-
|
I had the same problem and found the solution for adding subtitle and description to the first story on a storybook page. In |
Beta Was this translation helpful? Give feedback.
-
|
This is actually how it works in Storybook 7 with CSF3, where you can write JSDoc above your story export and it will end up as a description on the story in the docs. This is documented here: https://storybook.js.org/docs/vue/api/doc-block-description#writing-descriptions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that the example components in a default install of Storybook (for React) add a docblock style comment inside the component source code which then is displayed in the Docs tab of the related story. Specifically,
Button.tsxis annotated like so:this docblock annotation then appears in the Docs tab:

... this is fantastic! But I'd like to take it to the next level and have a docblock comment for each individual story in my Button.stories.tsx file (rather than only one comment at the top of the Docs tab). I tried it out but it doesn't seem to work. Is there some way to make this work?

Beta Was this translation helpful? Give feedback.
All reactions