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