noph-ui
Version:
Noph UI is a modern, powerful UI library for Svelte 5, fully aligned with the Material 3 guidelines. Build stunning, consistent user interfaces with the efficiency and flexibility of Svelte and Google’s Material Design framework.
19 lines (18 loc) • 649 B
TypeScript
import type { InputFieldProps } from '../types.ts';
import type { Snippet } from 'svelte';
export interface AutoCompleteOption {
value?: string | number;
label: string;
start?: Snippet;
end?: Snippet;
}
export interface AutoCompleteProps extends Omit<InputFieldProps, 'clientWidth' | 'clientHeight'> {
options: AutoCompleteOption[];
optionsFilter?: (option: AutoCompleteOption) => boolean;
onoptionselect?: (option: AutoCompleteOption, menuElement: HTMLDivElement) => void;
clampMenuWidth?: boolean;
showPopover?: () => void;
hidePopover?: () => void;
virtualThreshold?: number;
menuOpen?: boolean;
}