Skip to content

Opinion requested: should stories only be about different args for 1 component #32187

Closed Answered by dosubot bot
thobas-dnvgl asked this question in General
Discussion options

You must be logged in to vote

Hi @thobas-dnvgl! I'm Dosu and I’m helping the storybook team.

It's totally valid to have both single-instance stories (showing one variant of a component with specific args) and composite/grid stories (showing multiple states together) in Storybook. The most common and recommended pattern is to use single-instance stories for each variant, which works best with Storybook's controls, documentation, and automated testing features. This keeps your stories focused, makes the ArgsTable meaningful, and helps with maintainability and discoverability [docs].

However, composite/grid stories are also supported and can be useful for visual comparison or design review, especially when you want to s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thobas-dnvgl
Comment options

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