svelte-multiselect
Version:
Svelte multi-select component
17 lines (16 loc) • 396 B
TypeScript
export type Option = string | number | ObjectOption;
export type OptionStyle = string | {
option: string;
selected: string;
};
export type ObjectOption = {
label: string | number;
value?: unknown;
title?: string;
disabled?: boolean;
preselected?: boolean;
disabledTitle?: string;
selectedTitle?: string;
style?: OptionStyle;
[key: string]: unknown;
};