UNPKG

@papernote/ui

Version:

A modern React component library with a paper notebook aesthetic - minimal, professional, and expressive

17 lines 729 B
export type ToastType = 'success' | 'error' | 'warning' | 'info'; export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center'; export interface ToastProps { id: string; type: ToastType; title: string; message: string; duration?: number; onClose: (id: string) => void; } export default function Toast({ id, type, title, message, duration, onClose }: ToastProps): import("react/jsx-runtime").JSX.Element; export declare function ToastContainer({ toasts, onClose, position }: { toasts: ToastProps[]; onClose: (id: string) => void; position?: ToastPosition; }): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Toast.d.ts.map