UNPKG

svelte-5-ui-lib

Version:

Svelte 5 UI Lib is a UI library built from scratch to leverage Svelte 5's runes system, creating smooth, reactive components.

19 lines (18 loc) 787 B
import type { Snippet } from 'svelte'; import type { HTMLInputAttributes } from 'svelte/elements'; type SizeType = 'default' | 'small' | 'large' | undefined; type ToggleColor = 'primary' | 'secondary' | 'gray' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | undefined; interface ToggleProps extends HTMLInputAttributes { children?: Snippet; leftLabel?: Snippet; toggleSize?: SizeType; value?: string | number; checked?: boolean | undefined; disabled?: boolean; spanClass?: string; color?: ToggleColor; labelClass?: string; aria_describedby?: string; inputClass?: string; } export { type ToggleProps, type ToggleColor };