UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

24 lines (23 loc) 1.1 kB
import { ISelectDisplayInfoItem, ISelectQuery } from '@rc-hooks/select'; import { UnionOmit } from '@co-hooks/util'; import { HTMLAttributes } from 'react'; import { ISelectBase } from '../select/components/SelectBase'; import { ISelectExtraProps } from '../select/Select'; export interface IMultipleRimlessSelect<T> { useTag?: boolean; value?: T[]; disabled?: boolean; readonly?: boolean; filterOption?: ISelectQuery<T>; onChange?: (value: T[]) => void; onValueChange?: (value: T[]) => void; onDisplayInfoChange?: (info: Array<ISelectDisplayInfoItem<T>>) => void; showAll?: boolean; autoClearSearchValue?: boolean; } export declare type MultipleRimlessSelectProps<T> = UnionOmit<IMultipleRimlessSelect<T> & ISelectExtraProps & ISelectBase<T>, HTMLAttributes<HTMLDivElement>>; export declare function MultipleRimlessSelect<T>(props: MultipleRimlessSelectProps<T>): JSX.Element; export declare namespace MultipleRimlessSelect { var Option: typeof import("../select/Option").Option; var OptionGroup: typeof import("../select/OptionGroup").OptionGroup; }