import { IStylableProps } from '../Generic.types'; export declare type OptionType = { label: string; value: any; [key: string]: any; }; export declare type GroupedOptionType = { label: string; options: OptionType[]; [key: string]: any; }; export interface ISelectProps extends IStylableProps { /** * Options to be displayed in select */ options: GroupedOptionType[] | OptionType[]; /** * ID to add to the input element */ id?: string; /** * ID to add to the select container */ containerId?: string; /** * If the field is valid. Used for controlling aria tags on input * @default true */ isValid?: boolean; /** * The id to the error message. To be used in aria-describedby attribute on input. */ errorMessageId?: string; /** * onChange */ onChange?: (e: OptionType) => void; /** * Any additional props are passed through to the underlying element. */ [key: string]: any; } export default ISelectProps;