import { Flex } from '@chakra-ui/react'; import { Meta } from '@storybook/react'; import { theme } from '../../modules/theme'; import { Typography } from '../Typography'; import { Timeline, TimelineConnector, TimelineContent, TimelineItem, TimelineMarker } from '.'; export default { title: 'Components/Molecules/Timeline', component: Timeline, } as Meta; export const Horizontal = () => { return ( ); }; export const Vertical = () => { return ( ); }; const DATA = [ { title: 'Item 1', height: '100px', }, { title: 'Item 2', height: '50px', }, { title: 'Item 3', height: '75px', }, { title: 'Item 4', height: '100px', }, { title: 'Item 5', }, ]; export const Alternating = () => { return ( {DATA.map((it, index) => { return ( {!!it.height && } {it.title} ); })} ); };