import { StyleProps } from '@chakra-ui/react'; import { IDropdownV1MenuItem } from '../DropdownMenu/types'; export declare type SelectMode = 'single' | 'multiple'; export interface ISelectV1 extends StyleProps { /** * select mode */ mode?: SelectMode; /** * placeholder for select */ placeholder?: string; /** * options for select. */ items?: IDropdownV1MenuItem[]; /** * Current selected option (considered as a immutable array) */ value?: IDropdownV1MenuItem; /** * Initial selected option */ initialValue?: IDropdownV1MenuItem; /** * Called when an option is selected, the params are option's value (or key) and option instance */ onSelect?: (item: IDropdownV1MenuItem) => void; /** * Called when an option is selected, the params are option's value (or key) and option instance */ onSearch?: (value: string | string[]) => void; /** * Whether select is searchable */ showSearch?: boolean; /** * Whether select is open (only on Single Select) */ isOpen?: boolean; }