svelte-multiselect
Version:
Svelte multi-select component
10 lines (9 loc) • 440 B
TypeScript
import type { Option, OptionStyle } from './types';
export declare const get_label: (opt: Option) => string | number;
export declare function get_style(option: {
style?: OptionStyle;
[key: string]: unknown;
} | string | number, key?: `selected` | `option` | null): string;
export declare function highlight_matching_nodes(element: HTMLElement, // parent element
query?: string, // search query
noMatchingOptionsMsg?: string): void;