import React from 'react'; import { BaseFieldProps } from '../Field/types'; export declare type SelectOptionProp = { label: string; value: string; comment?: string; image?: string; }; export interface SelectProps extends Omit { selectProps?: React.SelectHTMLAttributes; selectRef?: React.Ref; /** * The content of the component. */ options?: [] | { [key: string]: any; } | { label: string; value: string; comment?: string; image?: string; } | { name: string; value: string; comment?: string; image?: string; } | { name: string; id: string; comment?: string; image?: string; } | { label: string; id: string; comment?: string; image?: string; }; onChange?: (value: any, option?: any) => void; value?: string | ReadonlyArray | number | undefined | null; defaultValue?: string | ReadonlyArray | number | undefined | null; useMenu?: boolean; /** * Show search input above menu items, useMenu has to be enabled * @default false */ searchable?: boolean; /** * @default false */ multiple?: boolean; /** * @default 'text' */ multipleMode?: 'chips' | 'text' | 'selected'; /** * @default true */ closeOnSelect?: boolean; imageOnly?: boolean; hideComment?: boolean; }