import { action } from 'storybook/actions';
import { Layout } from '../common';
import DefinitionList, { type DefinitionListLayout } from './DefinitionList';
import { lorem10 } from '../test-utils';
import Section from '../section';
import Header from '../header';
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 Basic = () => {
return layouts.map((layout) => (
));
};
export const WithActionButtons = () => {
return (
<>
{layouts.map((layout) => (
))}
>
);
};
export const Muted = () => {
return ;
};