diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-20 19:24:21 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-20 19:27:29 +0200 |
| commit | a08291b1586858fc894a27d56f55f87a88f8dbd3 (patch) | |
| tree | 0aa36c8add0ad0ecc07c0f7f20f5af3e2f7abe46 /src/components/organisms/layout/overview.stories.tsx | |
| parent | 362cf45bc520a68a1c1be20e1189ca2307577dde (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/organisms/layout/overview.stories.tsx')
| -rw-r--r-- | src/components/organisms/layout/overview.stories.tsx | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/src/components/organisms/layout/overview.stories.tsx b/src/components/organisms/layout/overview.stories.tsx index 61d8b35..b18a6b6 100644 --- a/src/components/organisms/layout/overview.stories.tsx +++ b/src/components/organisms/layout/overview.stories.tsx @@ -1,15 +1,21 @@ import { ComponentMeta, ComponentStory } from '@storybook/react'; -import OverviewComponent from './overview'; +import Overview from './overview'; +/** + * Overview - Storybook Meta + */ export default { - title: 'Organisms/Layout', - component: OverviewComponent, + title: 'Organisms/Layout/Overview', + component: Overview, argTypes: { cover: { description: 'The overview cover.', + table: { + category: 'Options', + }, type: { name: 'object', - required: true, + required: false, value: {}, }, }, @@ -22,10 +28,10 @@ export default { }, }, }, -} as ComponentMeta<typeof OverviewComponent>; +} as ComponentMeta<typeof Overview>; -const Template: ComponentStory<typeof OverviewComponent> = (args) => ( - <OverviewComponent {...args} /> +const Template: ComponentStory<typeof Overview> = (args) => ( + <Overview {...args} /> ); const cover = { @@ -33,6 +39,7 @@ const cover = { height: 480, src: 'http://placeimg.com/640/480/cats', width: 640, + unoptimized: true, }; const meta = { @@ -43,8 +50,20 @@ const meta = { }, }; -export const Overview = Template.bind({}); -Overview.args = { +/** + * Overview Stories - Default + */ +export const Default = Template.bind({}); +Default.args = { + cover, + meta, +}; + +/** + * Overview Stories - With cover + */ +export const WithCover = Template.bind({}); +WithCover.args = { cover, meta, }; |
