import { Meta, StoryObj } from '@storybook/react-webpack5'; import { fn } from 'storybook/test'; import { lorem10, lorem5 } from '../../test-utils'; import List from '../../list'; import { ListItem } from '../ListItem'; import { SB_LIST_ITEM_ADDITIONAL_INFO as INFO, SB_LIST_ITEM_MEDIA as MEDIA, } from '../_stories/subcomponents'; import type { ListItemSwitchProps } from './ListItemSwitch'; const meta: Meta = { component: ListItem.Switch, title: 'Content/ListItem/ListItem.Switch', args: { checked: false, onClick: fn(), }, argTypes: { checked: { control: 'boolean', }, onClick: { table: { type: { summary: '(event?: MouseEvent) => void' }, }, }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Playground: Story = { render: (args: ListItemSwitchProps) => { return ( } additionalInfo={INFO.nonInteractive} /> ); }, }; export const States: Story = { parameters: { controls: { disable: true }, }, render: (args) => { return ( } /> } /> ); }, };