Is there a way to have two (or more) histories for the same component but only have docs for one of them? #13540
Answered
by
yannbf
BiancaArtola
asked this question in
Help
-
I want to create some stories for my component, but I only want to show the docs of one of them. Is there a way to ignore the other stories? |
Beta Was this translation helpful? Give feedback.
Answered by
yannbf
Dec 30, 2020
Replies: 1 comment 1 reply
-
Hey @BiancaArtola, you should be able to disable docs per story by using the docs parameter: export const MyStory = () => <div>This story will show up in DocsPage</div>;
export const MyDocslessStory = () => <div>This story shouldn't show up in DocsPage</div>;
MyDocslessStory.parameters = {
docs: { disable: true },
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BiancaArtola
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @BiancaArtola, you should be able to disable docs per story by using the docs parameter: