import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { Grid } from './grid'; import { GridItem } from './grid-item'; export default { title: 'Molecules/Grid', component: Grid, argTypes: { items: { description: 'The grid items.', type: { name: 'object', required: true, value: {}, }, }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ; export const Default = Template.bind({}); Default.args = { children: ( <> Item 1 Item 2 Item 3 Item 4 Item 5 ), }; export const OneColumn = Template.bind({}); OneColumn.args = { children: ( <> Item 1 Item 2 Item 3 ), col: 1, gap: 'sm', }; export const TwoColumns = Template.bind({}); TwoColumns.args = { children: ( <> Item 1 Item 2 Item 3 ), col: 2, gap: 'sm', }; export const ThreeColumns = Template.bind({}); ThreeColumns.args = { children: ( <> Item 1 Item 2 Item 3 Item 4 ), col: 3, gap: 'sm', }; export const FixedSize = Template.bind({}); FixedSize.args = { children: ( <> Item 1 Item 2 Item 3 Item 4 Item 5 ), size: '300px', gap: 'sm', }; export const MaxSize = Template.bind({}); MaxSize.args = { children: ( <> Item 1 Item 2 Item 3 Item 4 Item 5 ), sizeMax: '300px', gap: 'sm', }; export const MinSize = Template.bind({}); MinSize.args = { children: ( <> Item 1 Item 2 Item 3 Item 4 Item 5 ), sizeMin: '100px', gap: 'sm', }; export const MinAndMaxSize = Template.bind({}); MinAndMaxSize.args = { children: ( <> Item 1 Item 2 Item 3 Item 4 Item 5 ), sizeMax: '300px', sizeMin: '100px', gap: 'sm', }; export const Fill = Template.bind({}); Fill.args = { children: ( <> Item 1 Item 2 Item 3 Item 4 Item 5 ), col: 'auto-fill', sizeMin: '100px', gap: 'sm', };