@chief-editor/ui
Version:
UI Component for chief editor
24 lines (23 loc) • 1.1 kB
TypeScript
import { HTMLAttributes } from 'react';
import { ISelectDisplayInfoItem, ISelectQuery } from '@rc-hooks/select';
import { UnionOmit } from '@co-hooks/util';
import { ISelectBase } from '../select/components/SelectBase';
import { ISelectExtraProps } from '../select/Select';
export interface IMultipleSelect<T> {
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;
onSearchChange?: (query: string) => void;
}
export declare type MultipleSelectProps<T> = UnionOmit<IMultipleSelect<T> & ISelectExtraProps & Omit<ISelectBase<T>, 'renderTrigger'>, HTMLAttributes<HTMLDivElement>>;
export declare function MultipleSelect<T>(props: MultipleSelectProps<T>): JSX.Element;
export declare namespace MultipleSelect {
var Option: typeof import("../select/Option").Option;
var OptionGroup: typeof import("../select/OptionGroup").OptionGroup;
}