-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hierarchy order #10306
Comments
You can currently achieve this by simply loading your stories in the desired order in module.exports = {
stories: [
'Basics.stories.js',
'UI.stories.js'
...
]
} There's also an options argument to I'm closing this as a dupe to #9188 |
Hi @shilman thanks for that but I don't think the default https://github.com/storybookjs/storybook/blob/next/lib/client-api/src/storySort.ts#L18 But here's my solution
|
@ton03 hierarchy separators are deprecated as of 5.3 and will be removed in 6.0 |
@shilman what's the alternative to Edit: found it, had to search through the pull requests :-) I searched for |
Is your feature request related to a problem? Please describe.
I would prefer to have an option to set an order of the story hierarchies. In the case of the demo site, I may want to see "Basics" first, then "UI", etc.
Describe the solution you'd like
Set the order via
manager.js
?or
the rest that are not mentioned would be rendered in whatever order they are rendered now.
It could default to a falsy value so storybook won't sort it
Describe alternatives you've considered
Something similar to
storySort
Are you able to assist bring the feature to reality?
I can give it a shot... 😅
Additional context
This would be useful to set a logical order of hierarchy in a Design System
The text was updated successfully, but these errors were encountered: