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.
12 lines (11 loc) • 569 B
TypeScript
import type { SVGAttributes } from 'svelte/elements';
type ColorType = 'primary' | 'gray' | 'red' | 'yellow' | 'green' | 'indigo' | 'purple' | 'pink' | 'blue' | 'orange' | 'amber' | 'lime' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'violet' | 'fuchsia' | 'rose' | 'secondary' | undefined;
type SizeType = '8' | '4' | '5' | '6' | '10' | '12' | '16' | undefined;
interface SpinnerProps extends SVGAttributes<SVGSVGElement> {
color?: ColorType;
size?: SizeType;
currentFill?: string;
currentColor?: string;
class?: string;
}
export type { SpinnerProps };