UNPKG

@zenithui/toast

Version:

A modern, lightweight toast notification system for React applications. ZenithUI Toast provides a simple and customizable way to display notifications, alerts, and messages to users with smooth animations and flexible styling options.

11 lines (10 loc) 651 B
import { PromiseToast, ToastOptions, ToastType } from "../lib/types"; export declare const toast: { success: (message: string, options?: ToastOptions) => void; info: (message: string, options?: ToastOptions) => void; error: (message: string, options?: ToastOptions) => void; warning: (message: string, options?: ToastOptions) => void; loading: (message: string, options?: ToastOptions) => void; promise: (message: string | Promise<any>, options?: ToastOptions & PromiseToast) => void; }; export declare const registerToast: (addToast: (message: string | Promise<any>, type: ToastType, options?: ToastOptions) => void) => void;