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

Subcategories for Styleguide components #346

Open
ErikFontanel opened this issue Feb 3, 2021 · 2 comments
Open

Subcategories for Styleguide components #346

ErikFontanel opened this issue Feb 3, 2021 · 2 comments

Comments

@ErikFontanel
Copy link

It would be nice if it's possible to add subcategories to organise the Components list so it's easier to group related components. This is useful when a specific set of components are only used within one larger component. Eg. an interactive editor component that is made out of components only used within the editor and not the rest of the app.

Ie.

Components

  • Buttons
  • Inputs
  • Editor
    • EditorZoomControls
    • EditorComponentA
    • EditorComponentB
@Wolfr
Copy link
Contributor

Wolfr commented Jul 15, 2021

This was recently mentioned as something that would be nice to have in another conversation with @FannyBenisek .

@Wolfr
Copy link
Contributor

Wolfr commented Jul 16, 2021

How to implement this?

I see two ways.

(1) Folder-based

_components/category-1/component
_components/category-2/component-2
_components/category-3/component-3

(2) Metadata-based

_components/component

Plus

---
title: Component
category: Category
---

I have a strong preference for the folder-based approach. We'd need to find a good naming strategy.

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

2 participants