aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/lists
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-20 19:24:21 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-20 19:27:29 +0200
commita08291b1586858fc894a27d56f55f87a88f8dbd3 (patch)
tree0aa36c8add0ad0ecc07c0f7f20f5af3e2f7abe46 /src/components/atoms/lists
parent362cf45bc520a68a1c1be20e1189ca2307577dde (diff)
refactor(storybook): reorganize design system
Add more stories for each components and change some components categories for better organization.
Diffstat (limited to 'src/components/atoms/lists')
-rw-r--r--src/components/atoms/lists/description-list.stories.tsx8
-rw-r--r--src/components/atoms/lists/list.stories.tsx21
2 files changed, 22 insertions, 7 deletions
diff --git a/src/components/atoms/lists/description-list.stories.tsx b/src/components/atoms/lists/description-list.stories.tsx
index 66d94af..43ee66e 100644
--- a/src/components/atoms/lists/description-list.stories.tsx
+++ b/src/components/atoms/lists/description-list.stories.tsx
@@ -3,8 +3,11 @@ import DescriptionListComponent, {
DescriptionListItem,
} from './description-list';
+/**
+ * DescriptionList - Storybook Meta
+ */
export default {
- title: 'Atoms/Lists',
+ title: 'Atoms/Typography/Lists',
component: DescriptionListComponent,
args: {
layout: 'column',
@@ -67,6 +70,9 @@ const items: DescriptionListItem[] = [
{ id: 'term-4', term: 'Term 4:', value: ['Value for term 4'] },
];
+/**
+ * List Stories - Description list
+ */
export const DescriptionList = Template.bind({});
DescriptionList.args = {
items,
diff --git a/src/components/atoms/lists/list.stories.tsx b/src/components/atoms/lists/list.stories.tsx
index 30079cb..3a80962 100644
--- a/src/components/atoms/lists/list.stories.tsx
+++ b/src/components/atoms/lists/list.stories.tsx
@@ -1,8 +1,11 @@
import { ComponentMeta, ComponentStory } from '@storybook/react';
import ListComponent, { type ListItem } from './list';
+/**
+ * List - Storybook Meta
+ */
export default {
- title: 'Atoms/Lists',
+ title: 'Atoms/Typography/Lists',
component: ListComponent,
args: {
kind: 'unordered',
@@ -68,13 +71,19 @@ const items: ListItem[] = [
{ id: 'item-4', value: 'Item 4' },
];
-export const Unordered = Template.bind({});
-Unordered.args = {
- items,
-};
-
+/**
+ * List Stories - Ordered list
+ */
export const Ordered = Template.bind({});
Ordered.args = {
items,
kind: 'ordered',
};
+
+/**
+ * List Stories - Unordered list
+ */
+export const Unordered = Template.bind({});
+Unordered.args = {
+ items,
+};