import { type ComponentProps, type ReactNode } from "react"; import { Popover, PopoverContent } from "../popover/popover"; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from "../command/command"; type ComboboxData = { label: string; value: string; }; export type ComboboxProps = ComponentProps & { data: ComboboxData[]; /** * Type name used in placeholder text (e.g. "Select {type}...") * @default "item" */ type?: string; defaultValue?: string; value?: string; onValueChange?: (value: string) => void; open?: boolean; onOpenChange?: (open: boolean) => void; /** Label text - always use this built-in prop instead of external