UNPKG

@tabula/ui-multi-selector

Version:

A MultiSelector allows users to select one or more items from a list of choices, or suggest own item.

29 lines (28 loc) 1.14 kB
import { ReactNode } from 'react'; import { BatchAction, ChangeHandler, CompleteKey, Option, SearchHandler, Selected, Size, Variant } from '../types'; export type Props = { addFound?: BatchAction; allowsCustomValue?: boolean; className?: string; completeKey?: CompleteKey; defaultPlaceholder?: string; disabledPlaceholder?: string; isDisabled?: boolean; isInvalid?: boolean; isPending?: boolean; isWarning?: boolean; maxSelectedLimit?: number; onAutocomplete?: SearchHandler; 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, isPending, isWarning, maxSelectedLimit, onAutocomplete, onChange, options, selectAll, selectFound, selected, size, variant, withDropdownChevron, }: Props): ReactNode; export declare namespace UiMultiSelector { var displayName: string; }