import { Meta, StoryObj } from "@storybook/react"; import { ComboBoxField } from "."; import { Label } from "../Atoms/Label"; import { Input } from "../Atoms/Input"; import { Popover } from "@components/Overlays/Popover"; import { ListBox } from "@components/Dropdowns/ListBox"; import { Item } from "@components/Collection"; import { Message } from "../Atoms/Message"; import { ErrorMessage } from "../Atoms/ErrorMessage"; import { FieldStateControls, RenderPropsArgTypes } from "@sb/helpers"; import { fn } from "@storybook/test"; export default { title: "Fields/ComboBoxField", component: ComboBoxField, parameters: { layout: "centered", }, argTypes: { ...FieldStateControls, ...RenderPropsArgTypes, }, } as Meta; type Story = StoryObj; export const Primary: Story = { args: { onInputChange: fn(), onOpenChange: fn(), onSelectionChange: fn(), menuTrigger: "focus", children: [ , Message, , Error, Item 1 Item 2 Item 3 Item 4 Item 5 , ], }, };