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