Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
111 stars 7 forks source link

Group new components within Storybook #513

Closed daiseybtw closed 8 months ago

daiseybtw commented 1 year ago

When browsing the storybook, some components are nicely grouped, such as form and typography, but there are some components at the root level that could also be grouped to make things clearer.

It would be really nice if the components at the root level could be grouped into relevant categories, e.g Details, Breadcrumb, Tabs and Table could be grouped into a 'Layout' folder, and going forward, seeing if any new components fit into a new or existing category.

Please follow the below to create your branch

git checkout release/1.0.0
git pull
git checkout -b 'feature/storybook-layout'
daiseybtw commented 1 year ago

For example, we have Typography and Form that contain components but then others at a top level

image
shivammuttoo commented 9 months ago

@daiseybtw Could you please suggest the exact root folder for each component that is not currently?

daiseybtw commented 9 months ago

I would recommend the following folders (bold are the new ones):

Form Layout Util Typography

I would then put components such as CopyToClipboard into Util

Components such as

Table, Tabs, Details, and even Breadcrumbs to Layout

daniele-zurico commented 8 months ago

closed by https://github.com/Capgemini/dcx-react-library/pull/561