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/cards-list.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/cards-list.stories.tsx')
| -rw-r--r-- | src/components/organisms/layout/cards-list.stories.tsx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/organisms/layout/cards-list.stories.tsx b/src/components/organisms/layout/cards-list.stories.tsx index 5182808..7ff4365 100644 --- a/src/components/organisms/layout/cards-list.stories.tsx +++ b/src/components/organisms/layout/cards-list.stories.tsx @@ -1,13 +1,32 @@ import { ComponentMeta, ComponentStory } from '@storybook/react'; import CardsListComponent, { type CardsListItem } from './cards-list'; +/** + * CardsList - Storybook Meta + */ export default { title: 'Organisms/Layout', component: CardsListComponent, args: { + coverFit: 'cover', kind: 'unordered', }, argTypes: { + coverFit: { + control: { + type: 'select', + }, + description: 'The cover fit.', + options: ['fill', 'contain', 'cover', 'none', 'scale-down'], + table: { + category: 'Options', + defaultValue: { summary: 'cover' }, + }, + type: { + name: 'string', + required: false, + }, + }, items: { description: 'The cards data.', type: { @@ -34,6 +53,8 @@ export default { titleLevel: { control: { type: 'number', + min: 1, + max: 6, }, description: 'The heading level for each card.', type: { @@ -56,6 +77,8 @@ const items: CardsListItem[] = [ src: 'http://placeimg.com/640/480', width: 640, height: 480, + // @ts-ignore - Needed because of the placeholder image. + unoptimized: true, }, meta: [ { id: 'meta-1', term: 'Quibusdam', value: ['Velit', 'Ex', 'Alias'] }, @@ -71,6 +94,8 @@ const items: CardsListItem[] = [ src: 'http://placeimg.com/640/480', width: 640, height: 480, + // @ts-ignore - Needed because of the placeholder image. + unoptimized: true, }, meta: [{ id: 'meta-1', term: 'Est', value: ['Voluptas'] }], tagline: 'Quod vel accusamus', @@ -84,6 +109,8 @@ const items: CardsListItem[] = [ src: 'http://placeimg.com/640/480', width: 640, height: 480, + // @ts-ignore - Needed because of the placeholder image. + unoptimized: true, }, meta: [ { @@ -98,6 +125,9 @@ const items: CardsListItem[] = [ }, ]; +/** + * Layout Stories - Cards list + */ export const CardsList = Template.bind({}); CardsList.args = { items, |
