Skip to content

Commit

Permalink
Feat: Storybook: Improve component organisation - Layout Category - I…
Browse files Browse the repository at this point in the history
…ssue #66275 (#66659)

* Group the storybook components in Layout category

* Fix the experimental component id

* Revert the unwanted changes in PR

---------

Co-authored-by: hbhalodia <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
4 people authored Nov 13, 2024
1 parent ec964d3 commit 6465b2d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/components/src/h-stack/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const JUSTIFICATIONS = {

const meta: Meta< typeof HStack > = {
component: HStack,
title: 'Components (Experimental)/HStack',
title: 'Components (Experimental)/Layout/HStack',
id: 'components-experimental-hstack',
argTypes: {
as: {
control: { type: null },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import ResponsiveWrapper from '..';

const meta: Meta< typeof ResponsiveWrapper > = {
component: ResponsiveWrapper,
title: 'Components/ResponsiveWrapper',
title: 'Components/Layout/ResponsiveWrapper',
id: 'components-responsivewrapper',
argTypes: {
children: { control: { type: null } },
},
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/v-stack/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const ALIGNMENTS = {

const meta: Meta< typeof VStack > = {
component: VStack,
title: 'Components (Experimental)/VStack',
title: 'Components (Experimental)/Layout/VStack',
id: 'components-experimental-vstack',
argTypes: {
alignment: {
control: { type: 'select' },
Expand Down
3 changes: 2 additions & 1 deletion storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,14 @@ export const parameters = {
'Actions',
'Containers',
'Feedback',
'Layout',
'Navigation',
'Overlays',
'Typography',
'Utilities',
],
'Components (Experimental)',
[ 'Navigation', 'Overlays', 'Typography' ],
[ 'Layout', 'Navigation', 'Overlays', 'Typography' ],
'Icons',
],
},
Expand Down

0 comments on commit 6465b2d

Please sign in to comment.