bedrock icon indicating copy to clipboard operation
bedrock copied to clipboard

Subcategories for Styleguide components

Open ErikFontanel opened this issue 5 years ago • 2 comments

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

ErikFontanel avatar Feb 03 '21 13:02 ErikFontanel

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

Wolfr avatar Jul 15 '21 08:07 Wolfr

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.

Wolfr avatar Jul 16 '21 09:07 Wolfr