@tabula/ui-multi-selector
Version:
A MultiSelector allows users to select one or more items from a list of choices, or suggest own item.
15 lines (14 loc) • 536 B
TypeScript
import { Option, SelectAll, SelectFound, Selected, UpdateHandler } from '../../../types';
import { Item } from '../../Dropdown.types';
type Options = {
allowsCustomValue?: boolean;
maxSelectedLimit?: number;
onUpdate: UpdateHandler;
options: Option[];
search: string;
selectAll: SelectAll;
selectFound: SelectFound;
selected: Selected;
};
export declare function useItems({ allowsCustomValue, maxSelectedLimit, onUpdate, options, search, selectAll, selectFound, selected, }: Options): Item[];
export {};