import { Meta, StoryObj } from '@storybook/react-webpack5'; import { fn } from 'storybook/test'; import { Field } from '../field/Field'; import Checkbox from './Checkbox'; import { withVariantConfig } from '../../.storybook/helpers'; import { lorem10 } from '../test-utils'; const meta: Meta = { component: Checkbox, title: 'Forms/Checkbox', args: { label: 'This is the label', onChange: fn(), }, }; export default meta; type Story = StoryObj; export const Basic: Story = {}; export const Multiple: Story = { render: (args) => { return ( <> ); }, ...withVariantConfig(['default', 'dark', 'rtl']), }; export const WithinField = { decorators: [ (Story) => ( <> ), ], } satisfies Story;