viewport.defaultViewport overridable via globals query parameter in storybook url #27222
Closed
andreasbalzer
started this conversation in
Ideas
Replies: 1 comment
-
I learnt version 8 does provide this already: &globals=viewport:{viewport-name} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
I would like to open Storybook with a specific viewport, that some of my stories support, by providing the globals query parameter.
Describe the solution you'd like
When opening Storybook url, providing globals=viewport.defaultViewport:%22viewportName%22 should attempt to load the viewport with name viewportName. If that does not exist it should revert to one of the available viewports. It would be amazing, if Storybook would update the query parameter based on the toolbar selection, like it does for background grid &globals=backgrounds.grid:!true.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions