import { type Meta, type StoryFn } from '@storybook/react' import { Checkbox } from './Checkbox' import { type CheckboxProps, type CheckedState } from './Checkbox.types' const meta: Meta = { component: Checkbox, argTypes: { checked: { control: { type: 'radio', }, options: [true, false, 'indeterminate'], }, }, } export default meta const Template: StoryFn> = ({ children, ...otherCheckboxProps }) => {children} export const Controlled = { render: Template, args: { checked: true, disabled: false, required: false, hasError: false, children: 'Option', }, } export const Uncontrolled = { render: Template, args: { defaultChecked: true, disabled: false, required: false, hasError: false, children: 'Option', }, }