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
Is your feature request related to a problem? Please describe
Inside the Canvas / Preview Tab, I globally want to wrap my stories and display a header (title and additional information). But I don't want to wrap them on the Docs Tab.
I tried to create a decorator and check if StoryContext.viewMode == 'docs' but as described in #12566, the viewMode is always story for iframed stories.
Describe the solution you'd like
Aa different viewMode for the iFrame should be used. Either docsStory inside the Docs Tab or canvas instead of story on the Canvas / Preview Tab.
Describe alternatives you've considered
Currently in my project, we wrap the component(s) inside the template, which means:
Redundancy (title, description, …) on the Docs Tab
Obstructing the component itself on the Docs Tab (only our wrapper/header is visible and the components move below the fold)
We don't have enough benefits to migrate from storiesOf to CSF or MDX now, because we would have to touch everything again when the angular integration is more matured.
Are you able to assist to bring the feature to reality?
Yes, I just don't understand the/all implications or strategic decisions.
Additional context
I use storybook together with angular. This means that currently there is no way to inline the story inside the docs.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe
Inside the Canvas / Preview Tab, I globally want to wrap my stories and display a header (title and additional information). But I don't want to wrap them on the Docs Tab.
I tried to create a decorator and check if
StoryContext.viewMode == 'docs'
but as described in #12566, the viewMode is alwaysstory
for iframed stories.Describe the solution you'd like
Aa different
viewMode
for the iFrame should be used. EitherdocsStory
inside the Docs Tab orcanvas
instead ofstory
on the Canvas / Preview Tab.Describe alternatives you've considered
Currently in my project, we wrap the component(s) inside the
template
, which means:storiesOf
to CSF or MDX now, because we would have to touch everything again when the angular integration is more matured.Are you able to assist to bring the feature to reality?
Yes, I just don't understand the/all implications or strategic decisions.
Additional context
I use storybook together with angular. This means that currently there is no way to inline the story inside the docs.
The text was updated successfully, but these errors were encountered: