-
-
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
Is it possible to add extra info for a specific story #10823
Comments
We'll be supporting this more natively in a future release |
Thanks for the answer
Am I correct? Is it possible to directly add the docs -> extraComponentDescription into the component itself rather than using this decorator? Thanks and regards. |
@danielo515 yes you can add override import React from 'react';
/**
* Some button description
*/
export const Button = () => <button>hi</button> |
@shilman I tested the proposed solution and the comments are added to the top of the documentation page, not to the specific story where I defined the parameter. Is that the expected behaviour or I did something wrong? |
My request is exactly the same as #8527 |
Aha there’s also a community provided webpack plugin to do it at the story level. Don’t have the link handy. |
I was guessing if it is possible to add certain extra documentation to one story. I'm not talking about using mdx, but adding some "notes" to one particular story and let them show up on the generated documentation.
The text was updated successfully, but these errors were encountered: