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.
20 lines (19 loc) • 774 B
TypeScript
import type { Snippet } from 'svelte';
import type { ParamsType, TransitionFunc } from '../types';
import type { HTMLAttributes } from 'svelte/elements';
type alertColor = 'primary' | 'secondary' | 'gray' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
interface AlertProps extends HTMLAttributes<HTMLDivElement> {
children: Snippet;
icon?: Snippet;
alertStatus?: boolean;
closeIcon?: boolean;
color?: alertColor;
border?: boolean;
rounded?: boolean;
dismissable?: boolean;
transition?: TransitionFunc;
params?: ParamsType;
onclick?: () => void;
class?: string;
}
export type { alertColor, AlertProps };