import type { Meta, StoryObj } from '@storybook/react-vite'; import { type ComponentMatrixCellProps, Story } from '../_internal/Story'; import { RadioGroup, type RadioGroupItemProps } from './RadioGroup'; const meta = { component: RadioGroup, parameters: { layout: 'fullscreen', }, title: 'components/form/RadioGroup', } satisfies Meta; export default meta; type RadioSize = NonNullable; type StoryDefinition = StoryObj; const SIZE_ROWS: { key: RadioSize; label: string; }[] = [ { key: 'md', label: 'Medium' }, { key: 'sm', label: 'Small' }, ]; const STATE_COLUMNS = [ { key: 'unchecked', label: 'Unchecked' }, { key: 'checked', label: 'Checked' }, { key: 'disabled', label: 'Disabled' }, ]; function RadioStateCell({ column, row }: ComponentMatrixCellProps) { const value = column.key === 'checked' ? 'option' : undefined; return ( ); } export const All: StoryDefinition = { render: () => ( ), };