import * as RadixSelect from "@radix-ui/react-select"; interface SelectOption { /** * The value of the option. */ value: string; /** * The label to display for the option. */ label: string; } interface SelectProps extends Omit { /** * The value of the select item that should be selected by default. * Use when you do not need to control the state of the select items. */ defaultValue?: string; /** * The controlled value of the select. * Should be used in conjunction with onChange. */ value?: string; /** * Callback triggered when the selected value changes. */ onChange?: (value: string) => void; /** * The options to display in the select dropdown. */ options: SelectOption[]; /** * The placeholder text to display when no value is selected. */ placeholder?: string; /** * If true, the select will display in an error state with error styling * @default false */ error?: boolean; /** * The open state of the select when it is initially rendered. * Use when you do not need to control its open state. * @default false */ defaultOpen?: boolean; /** * The controlled open state of the select. Must be used in conjunction with onOpenChange. */ open?: boolean; /** * Callback triggered when the open state changes */ onOpenChange?: (open: boolean) => void; /** * When true, prevents the user from interacting with select. * @default false */ disabled?: boolean; /** * The name of the select. Submitted with its owning form as part of a name/value pair. */ name?: string; } declare const Select: import('react').ForwardRefExoticComponent>; export { Select }; export type { SelectProps, SelectOption };