import type { Meta, StoryObj } from '@storybook/react' import React from 'react' import { createSizeDecorator } from '../../utils/decorators' import { NestedCheckbox, NestedCheckboxToggle, NestedCheckboxOption, } from './NestedCheckbox' const meta: Meta = { title: 'Form/Checkbox/NestedCheckbox', component: NestedCheckbox, decorators: [createSizeDecorator('XS')], } export default meta type Story = StoryObj export const Default: Story = { render: (args) => ( Select All Option 1 Option 2 ), } export const Disabled: Story = { args: { disabled: true, }, render: (args) => ( Select All (Disabled) Option 1 Option 2 ), } const ControlledStory = (_args: Story['args']) => { const [selected, setSelected] = React.useState([]) return ( Select All (Controlled) Option 1 Option 2 Option 3 ) } export const Controlled: Story = { render: () => , } export const Nested: Story = { render: (args) => ( Select All Option 1 Option 2 Option 3 Option 3-1 Option 3-2 ), }