@tabula/ui-multi-selector
Version:
A MultiSelector allows users to select one or more items from a list of choices, or suggest own item.
26 lines (25 loc) • 998 B
TypeScript
import { ReactNode } from 'react';
import { ChangeHandler, CompleteKey, Option, SelectAll, SelectFound, Selected, Size, Variant } from '../types';
export type Props = {
allowsCustomValue?: boolean;
className?: string;
completeKey?: CompleteKey;
defaultPlaceholder?: string;
emptyPlaceholder?: string;
isDisabled?: boolean;
isInvalid?: boolean;
isWarning?: boolean;
maxSelectedLimit?: number;
onChange: ChangeHandler;
options: Option[];
selectAll?: SelectAll;
selectFound?: SelectFound;
selected: Selected;
size: Size;
variant: Variant;
withDropdownChevron?: boolean;
};
export declare function UiMultiSelector({ allowsCustomValue, className, completeKey, defaultPlaceholder, emptyPlaceholder, isDisabled, isInvalid, isWarning, maxSelectedLimit, onChange, options, selectAll, selectFound, selected, size, variant, withDropdownChevron, }: Props): ReactNode;
export declare namespace UiMultiSelector {
var displayName: string;
}