Replies: 2 comments 5 replies
-
|
Hi @chbiel! I'm Dosu and I’m helping the storybook team. Storybook doesn't have a built-in overview page, but you can efficiently list all components and their stories using the story index ( For identifying the "primary" story, Storybook's docs use the first story defined in each file as the primary one for previews (via the Primary Doc Block) — but this is a convention, not enforced by the API. If you want to follow Storybook's autodocs logic, you can either use the first story per component or look for a specific name like "Primary" or "Playground" if you use that convention in your codebase reference. If you want more control, you can customize the docs template using the For best performance, use Let me know if you want code examples for grouping stories or customizing the docs page! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
@dosu most things you suggested are already implemented... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I an looking for an efficient way to create a component overview page, that lists all available components with the primary story as a preview.
I tried to find other discussions or issues but the keywords are hard to search :)
I also digged through the code to see if I can find APIs but was not successful.
See PoC below..
My questions:
Additional information
I have a PoC ready, but it's very inefficient, takes long to load and increases the bundle size unnecessarily:
and using it in a MDX:
Will result in something like this:
But as said, loading is slow with many stories and it feels inefficient overall.
Are there APIs in storybook I could use to get a similar outcome?
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions