UNPKG

portalis-component

Version:

Component Library for Nuxt 3 using TailwindCSS

15 lines (14 loc) 502 B
export interface SelectItem { text: string; value: unknown; disabled?: boolean; [key: string]: unknown; } export interface SelectProps { modelValue: unknown; selected?: SelectItem; options?: SelectItem[] | string[]; } export declare function defineOptions(options: SelectItem[]): SelectItem[]; export declare function findSelected(items: SelectItem[], value: unknown): SelectItem; export declare function filterSelected(items: SelectItem[], value: unknown[]): SelectItem[];