import { action } from 'storybook/actions'; import { Layout } from '../../common'; import DefinitionList, { type DefinitionListLayout } from '..'; import { lorem10 } from '../../test-utils'; import Section from '../../Section'; import Header from '../../Header'; import { createSandboxStory, globalScope, } from '../../../.storybook/components/sandbox/SandboxEditor'; export default { component: DefinitionList, title: 'Typography/DefinitionList', }; const layouts: DefinitionListLayout[] = [ Layout.VERTICAL_TWO_COLUMN, Layout.VERTICAL_ONE_COLUMN, Layout.HORIZONTAL_JUSTIFIED, Layout.HORIZONTAL_LEFT_ALIGNED, Layout.HORIZONTAL_RIGHT_ALIGNED, ]; const definitions = [ { title: 'Definition List title', value: 'Definition List value', key: 'first', }, { title: 'Use wrapper elements to style', value: 89.45GBP, key: 'second', }, { title: 'Long strings will wrap', value: lorem10, key: 'third', }, ]; export const Sandbox = createSandboxStory({ code: ``, scope: globalScope, }); export const Basic = () => { return layouts.map((layout) => (
)); }; export const WithActionButtons = () => { return ( <> {layouts.map((layout) => (
))} ); }; export const Muted = () => { return ; };