UNPKG

react-universal-toast

Version:

A lightweight, customizable toast notification system for React applications with TypeScript support.

12 lines (11 loc) 342 B
import { ReactNode } from "react"; export declare const toast: { show: (msg: ReactNode, opts?: { type?: "success" | "error" | "info"; }) => string; success: (msg: ReactNode) => string; error: (msg: ReactNode) => string; info: (msg: ReactNode) => string; remove: (id: string) => void; clear: () => void; };