Skip to content
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

Feature: Grouping like components with sidebar sections #1178

Closed
reggi opened this issue Jun 1, 2017 · 7 comments
Closed

Feature: Grouping like components with sidebar sections #1178

reggi opened this issue Jun 1, 2017 · 7 comments

Comments

@reggi
Copy link

reggi commented Jun 1, 2017

Im interested in a way to group different components together based on different functionality or location in the app. A great example of a sidebar menu that does this is GraphiQL. You can see how when you click a section you have a full menu of new items and you can go back and forth.

jun-01-2017 11-49-44

Example scenario: Let's say you have a bunch of form components Input, Select, Checkbox, and then you have a bunch of shape components like Circle, Square, and Triangle. This idea would allow you to specify in the story file or perhaps in the folder structure, which component goes where. Allowing all the shape components to live together and all the formcomponents all together.

Alternatively, a way to even group / order them with titles / header could help solve this issue as well.

@shilman
Copy link
Member

shilman commented Jun 1, 2017

@reggi the current workaround is to name your stories like "prefix.storyname" and then search for "prefix." in the search bar. obviously this is a hack, but it's something that's available today.

There are a couple other issues open that are related:

If you think your idea can fit into one of those, perhaps we can close this and continue the conversation there? I think there is a group of people interested in working on this, though I'm not sure of the current status. @usulpro ?

@ndelangen
Copy link
Member

#1356 #1387 #1401 #1427 #151
About to get released with 3.2.0

@abnerlee
Copy link

@ndelangen I searched the doc, but I cannot find how to do this in your doc, so which doc should I refer to?

@ndelangen
Copy link
Member

This issue is 2 years old, I lack the exact context of your question @abnerlee.

Can you elaborate what you're asking?

@Fr33maan
Copy link

Fr33maan commented Sep 4, 2020

export default { title: 'Components.Button' } Will create a category Components and place your Button story inside this category. Clean

@shilman
Copy link
Member

shilman commented Sep 4, 2020

@Fr33maan Components/Button in 6.0

@Fr33maan
Copy link

Fr33maan commented Sep 4, 2020

@shilman good to know ! I'm still on 5.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants