import { LayoutSelection } from '../'; import { Story } from '@storybook/react'; import { LayoutSelectionProps } from './LayoutSelection'; export default { title: 'Components/LayoutSelection', component: LayoutSelection, parameters: { layout: 'fullscreen', }, }; const Template: Story = (props) => (
hello it's children
); export const Default = Template.bind({}); Default.args = { items: [ { id: 'test1', title: 'test1', }, { id: 'test2', title: 'test2', }, { id: 'test3', title: 'test3', }, { id: 'test4', title: 'test4', }, ], }; export const withHeader = Template.bind({}); withHeader.args = { Header:
This is a header
, items: [ { id: 'test1', title: 'test1', }, { id: 'test2', title: 'test2', }, { id: 'test3', title: 'test3', }, { id: 'test4', title: 'test4', }, ], }; export const withPagination = Template.bind({}); withPagination.args = { items: Array.from(new Array(500), (v, k) => k).map((k) => ({ id: `${k}`, title: `test ${k}`, })), };