Skip to content

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
Discussion options

You must be logged in to vote

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 },
};

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BiancaArtola
Comment options

Answer selected by BiancaArtola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants