import type { Meta, StoryObj } from '@storybook/react-vite'; import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, } from './select'; import { Label } from '../label/label'; const meta = { title: 'Components/Select', component: Select, parameters: { layout: 'centered', docs: { description: { component: 'Choose one value from a list, with type-ahead and full keyboard support. Reach for Combobox once the list is long enough to need filtering, and DropdownMenu when the items are actions rather than values.', }, }, }, tags: ['autodocs'], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: () => ( ), }; export const Grouped: Story = { render: () => (
), }; export const Sizes: Story = { render: () => (
), }; export const Invalid: Story = { render: () => ( ), }; /** * CBAR's `.isClearable?` slot. The reset control is a sibling of the trigger, * layered over it — `SelectPrimitive.Trigger` is a real `