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.

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