preview icon indicating copy to clipboard operation
preview copied to clipboard

Sort & Group components

Open znck opened this issue 5 years ago • 2 comments

  • [ ] Create sections of components
  • [ ] Assign components to sections
    • [ ] Can a component be assigned multiple sections?
  • [ ] Navigate to the section route
    • [ ] What do we see on the section page?

znck avatar Aug 03 '20 01:08 znck

Does using directory name as the group name make sense? Should we create a group tree or use file's parent directory as group?

znck avatar Aug 03 '20 02:08 znck

Does using directory name as the group name make sense?

It does makes sense to a lot of my users. But I know that some user prefer a flat structure for their components. I would see the directory name be a great default grouping.

Should we create a group tree or use file's parent directory as group?

As a user I would like the directory structure to be the default grouping. Then a few options in the config file:

  • flat: boolean should turn the list completely flat ignoring the folder structure
  • sections: Array<Sections> similar to the sections config in styleguidist where grouping is entirely manual using globs & ignores

elevatebart avatar Aug 03 '20 14:08 elevatebart