UNPKG

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.

24 lines (23 loc) 663 B
import type { Snippet } from 'svelte'; import type { HTMLSelectAttributes } from 'svelte/elements'; export interface SelectOption { value: string | number; label: string; disabled?: boolean; selected?: boolean | undefined | null; } export interface SelectProps extends Omit<HTMLSelectAttributes, 'size' | 'autocomplete'> { label?: string; supportingText?: string; issues?: { message: string; }[]; variant?: 'outlined' | 'filled'; start?: Snippet; end?: Snippet; noAsterisk?: boolean; element?: HTMLSpanElement; options: SelectOption[]; clampMenuWidth?: boolean; virtualThreshold?: number; }