import React from "react"; import { Meta, StoryFn } from "@storybook/react"; import { Flex, View } from "@phoenix/components"; import { ComboBox, ComboBoxItem, ComboBoxProps, } from "@phoenix/components/combobox/ComboBox"; const meta: Meta = { title: "ComboBox", component: ComboBox, argTypes: { label: { control: { type: "text", default: "Label", }, }, isDisabled: { type: "boolean", }, description: { type: "string", control: { type: "text", }, }, errorMessage: { type: "string", control: { type: "text", }, }, isInvalid: { control: { type: "boolean", }, }, isRequired: { control: { type: "boolean", }, }, menuTrigger: { options: ["manual", "input", "focus"], control: { type: "radio", }, }, }, parameters: { layout: "centered", }, }; export default meta; const Template: StoryFn> = (args) => ( Chocolate Mint Strawberry Vanilla ); export const Default = Template.bind({}); Default.args = { label: "Ice cream flavor", }; export function Gallery() { return ( Chocolate Mint Strawberry Vanilla Chocolate Mint Strawberry Vanilla Chocolate Mint Strawberry Vanilla Chocolate Mint Strawberry Vanilla ); }