You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a storybook which only serves as a kind of wrapper for other storybooks I have, so I have set it up to be using composition. Let's say for example:
Everything good so far, but then I got the need to visually classify/separate the storybooks. So my first thought was to use something similar as we do for stories with the title structure that will render folders...
So I expected that this would render 2 folders Shared Components and Experiments and each of this folders would have the storybooks. That clearly didn't work, that just added Shared Components in the title in the sidebar.
My second alternative was then to 3 "wrappers" one for the Shared Components, one for the Prototypes and a the third which was basically what we have which is the Root Wrapper. So something similar to:
But the result of that is not rendering any of the storybooks when I run the Root Wrapper, although I can see the storybooks composition for each of them when I click on "See this storybook externally".
Is there anything I can do to achieve this? Is there any other way to visually separate the storyboks that are using composition?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hey all 👋🏻
I have a storybook which only serves as a kind of wrapper for other storybooks I have, so I have set it up to be using composition. Let's say for example:
Everything good so far, but then I got the need to visually classify/separate the storybooks. So my first thought was to use something similar as we do for stories with the title structure that will render folders...
So I expected that this would render 2 folders
Shared Components
andExperiments
and each of this folders would have the storybooks. That clearly didn't work, that just addedShared Components
in the title in the sidebar.My second alternative was then to 3 "wrappers" one for the
Shared Components
, one for thePrototypes
and a the third which was basically what we have which is the Root Wrapper. So something similar to:Shared components
Experiments
Root Wrapper
But the result of that is not rendering any of the storybooks when I run the Root Wrapper, although I can see the storybooks composition for each of them when I click on "See this storybook externally".
Is there anything I can do to achieve this? Is there any other way to visually separate the storyboks that are using composition?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions