New Meta property for nesting/hierarchy/folders #26328
Michael-Ziluck
started this conversation in
Ideas
Replies: 0 comments
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.
With the change in v7 of the Storybook CSF that prevents template literal strings, there is no longer a way to prevent issues with folder spelling in the title of components. Previously, we were able to do something like the following:
This would ensure that there would never be a spelling error that would break nesting in the rendered Storybook instance. Now, developers will have to do something like the following, which is error prone due to magic strings:
Describe the solution you'd like
It would be extremely beneficial (and I'd image fairly simple) to allow a property named
path
,directory
, ornesting
that accepts either astring
orstring[]
.That way you can declare the story's Meta from the previous example by doing the following:
Describe alternatives you've considered
I'm aware that there is almost certainly a way to achieve this with custom indexers or a similar method, but having it be a part of Meta would significantly increase the DX of using the Storybook library for many users.
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