-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook docs description for primary slot #9468
Comments
@shilman Thanks for reply, I talk about that example, on the third line "description" rendered by JSDoc, from this example https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/docspage.md#description |
Does this help? 3bcaaeb |
It works and would like to share the following info from my experience in case of any misunderstanding:
The above will work and the below will not
|
@HoraceKeung thanks! for MDX, you should be able to do:
|
@HoraceKeung Thanks!!! |
@shilman Thank you! Would like to mention that in Vue, it is |
@HoraceKeung thanks, fixed. yes docs coming soon 🙈 |
Hi @shilman it works properly :) But, what about slots, how can we add a slots' description? I've noticed it "catches" the slot when used as a tag (instead of using it as <div slot: 'bla'/>) but I'm not achieving how to customize the description. Any idea? Thks! |
@annacv you can describe slots with <template>
<div>
<!-- @slot Use this slot header -->
<slot name="header"></slot>
<!--
@slot Modal footer
@binding item an item passed to the footer
-->
<slot name="footer" :item="item" />
</div>
</template> Here is the reference: https://github.com/vue-styleguidist/vue-styleguidist/tree/dev/packages/vue-docgen-api#slots |
Has anyone managed to define this subheader in their story? Looking at the storybook documentation for the docs page i just can't get it to work, I've tried:
|
Hi, i need help.
How i can write description for primary slot with vue story, and how i can describe props or events, i have not found how i can do it.
And i have not found describes for parameters.docs api. I lost many hours in tried find describes((
The text was updated successfully, but these errors were encountered: