import { Meta, StoryFn } from '@storybook/react-webpack5'; import { useState } from 'react'; import { SegmentedControl } from './SegmentedControl'; import type { SegmentedControlVariant, SegmentedControlSize, } from './SegmentedControl'; export default { component: SegmentedControl, title: 'Components/Forms/SegmentedControl', } as Meta; const items = [ { id: 'all', label: 'All' }, { id: 'running', label: 'Running' }, { id: 'stopped', label: 'Stopped' }, { id: 'disabled-item', label: 'Disabled', disabled: true }, ]; function Controlled({ variant, size, }: { variant?: SegmentedControlVariant; size?: SegmentedControlSize; }) { const [active, setActive] = useState('all'); return ( ); } export const ContainedMd: StoryFn = () => ( ); export const ContainedSm: StoryFn = () => ( ); export const PillMd: StoryFn = () => ; export const PillSm: StoryFn = () => ;