UNPKG

@openhands/ui

Version:
12 lines (11 loc) 468 B
import { BaseProps, HTMLProps, IOption } from '../../shared/types'; export type SelectProps<T> = Omit<HTMLProps<"input">, "value" | "onChange"> & { error?: string; hint?: string; label: string; value?: IOption<T> | null; options: IOption<T>[]; noOptionsText?: string; onChange(value: IOption<T> | null): void; } & BaseProps; export declare const Select: <T extends string>(props: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;