claritykit-svelte
Version:
A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility
24 lines • 718 B
TypeScript
export type ToastType = 'success' | 'error' | 'warning' | 'info';
export type ToastPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
export interface ToastOptions {
type?: ToastType;
title?: string;
message?: string;
duration?: number;
dismissible?: boolean;
showIcon?: boolean;
actionText?: string;
position?: ToastPosition;
onAction?: () => void;
}
export interface ToastItem extends ToastOptions {
id: string;
timestamp: number;
}
export interface ToastManagerState {
toasts: ToastItem[];
maxToasts: number;
defaultPosition: ToastPosition;
defaultDuration: number;
}
//# sourceMappingURL=types.d.ts.map