Skip to content

Only top level documentation page #23229

Closed Answered by m0tr0m
m0tr0m asked this question in Help
Discussion options

You must be logged in to vote

Got it!

  1. Configure 'autodocs' feature - keyword 'tags' -> https://storybook.js.org/docs/react/writing-docs/autodocs#configure
  2. Now each story that should has docs has to provide the autodocs tag:
    const meta: Meta<typeof Button> = { component: Button, //👇 Enables auto-generated documentation for the component story tags: ['autodocs'], argTypes: { backgroundColor: { control: 'color' }, }, };
  3. Stories that dont provide this tag doesnt has docs any more :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by m0tr0m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant