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.

16 lines (15 loc) 564 B
import { BatchAction, Option, Selected, UpdateHandler } from '../../../types'; import { Item } from '../../Dropdown.types'; type Options = { addFound: BatchAction; allowsCustomValue?: boolean; maxSelectedLimit?: number; onUpdate: UpdateHandler; options: Option[]; search: string; selectAll: BatchAction; selectFound: BatchAction; selected: Selected; }; export declare function useItems({ addFound, allowsCustomValue, maxSelectedLimit, onUpdate, options, search, selectAll, selectFound, selected, }: Options): Item[]; export {};