-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All stories displayed on a single page (kitchen sink) #760
Comments
I don't think you need anything special to make this run in a monorep, just need to use the right
I suppose you are looking for the nesting? I think there are some other tickets about that. |
I think she's asking if there was a way to display all your stories in a single place, kind of like how bootstrap and foundation's kitchen sink looks like. Instead of clicking through to each component's story, you see everything together. |
This asks for 2 things in 1 issue, and I think @novascreen answered the first: Secondly: The question of a "show me everything you've got" page. Thanks for the suggestion! I think this is something we should do some brainstorming on how to do a good UX for that. |
Ideally this would be achievable via a plugin, although I don't think it is right now? The tricky part is figuring out how to display stories side-by-side in a sensible fashion--does anyone have any ideas about how you could do that? I mean I guess you could literally just do: <div>
<Component1 {...story1}/>
<Component1 {...story2}/>
</div> But would that actually render properly in all cases? |
If an addon could wrap storybook components... and thus add styling and or logic... If we provide a method for getting all the stories (in hierarchy) then such an addon should have no problem displaying everything on one page. |
I think this can be achieved by using the addon very similar to chapters. storiesOf('Buttons Package')
.addStyleGuide('Default button', guide => guide
.add('with text', fn(1))
.add('with icons', fn(2))
) where Looks like we can even add such API to Looks really promising to continue this feature and implement something like #602 |
#1394 In progress here |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
It would be nice if storybooks could run in a monorepo and generate a storybook for each package in the monorepo. It would also be nice if you had a kitchen sink that would show an example of all the components in the package in one spot rather than only seeing one at a time similar to how it's done in React Styleguide Generator Alt. This would in effect create a kitchen sink of all the components available in the mono repo. Here's a UI mock up of what this might look like:
The text was updated successfully, but these errors were encountered: