Can I autogenerate Storybook component Controls for some stories, but not others?

Viewed 827

I love how with the new Component Story Format, controls get generated automatically using react-docgen-typescript from component I provide in config:

export default {
  title: 'story name',
  component: MyComponent
} as Meta

But with some components, I would like to only use this auto-generated list of Controls for some stories, and not for others.

Maybe like having one story with the full list of Controls for all possible props, and multiple additional Stories that only showcase props that are relevant to the story. This would be especially welcome for stories of custom wrappers over large 3rd party components, that often have hundreds of niche props.

How can I do this?

0 Answers
Related