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.
15 lines (14 loc) • 625 B
TypeScript
import type { Snippet } from 'svelte';
import type { HTMLInputAttributes } from 'svelte/elements';
type RadioColorType = 'primary' | 'secondary' | 'gray' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | undefined;
interface RadioProps<T> extends HTMLInputAttributes {
children: Snippet;
aria_describedby?: string;
color?: RadioColorType;
group?: T;
value?: T;
inputClass?: string;
labelClass?: string;
hidden?: boolean;
}
export { type RadioProps, type RadioColorType };