aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/section.stories.tsx
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/layout/section.stories.tsx
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/layout/section.stories.tsx')
-rw-r--r--src/components/atoms/layout/section.stories.tsx33
1 files changed, 25 insertions, 8 deletions
diff --git a/src/components/atoms/layout/section.stories.tsx b/src/components/atoms/layout/section.stories.tsx
index abbbeed..530b2a0 100644
--- a/src/components/atoms/layout/section.stories.tsx
+++ b/src/components/atoms/layout/section.stories.tsx
@@ -1,9 +1,12 @@
import { ComponentMeta, ComponentStory } from '@storybook/react';
-import SectionComponent from './section';
+import Section from './section';
+/**
+ * Section - Storybook Meta
+ */
export default {
- title: 'Atoms/Layout',
- component: SectionComponent,
+ title: 'Atoms/Layout/Section',
+ component: Section,
args: {
variant: 'dark',
withBorder: true,
@@ -72,14 +75,28 @@ export default {
},
},
},
-} as ComponentMeta<typeof SectionComponent>;
+} as ComponentMeta<typeof Section>;
-const Template: ComponentStory<typeof SectionComponent> = (args) => (
- <SectionComponent {...args} />
+const Template: ComponentStory<typeof Section> = (args) => (
+ <Section {...args} />
);
-export const Section = Template.bind({});
-Section.args = {
+/**
+ * Section Stories - Light
+ */
+export const Light = Template.bind({});
+Light.args = {
title: 'A title',
content: 'The content.',
+ variant: 'light',
+};
+
+/**
+ * Section Stories - Dark
+ */
+export const Dark = Template.bind({});
+Dark.args = {
+ title: 'A title',
+ content: 'The content.',
+ variant: 'dark',
};