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.

18 lines (17 loc) 357 B
import { ReactNode } from 'react'; import { IconComponent } from '../types'; export type Part = { isMatches: boolean; substring: string; }; export type Item = { key: string; icon?: IconComponent; label: ReactNode; title?: string; onSelect: () => void; hasDividerAfter?: boolean; } | { key: string; skeleton: true; };