UNPKG

@divetocode/toast

Version:

A lightweight toast notification system for React/Next.js

10 lines (6 loc) 217 B
import * as react from 'react'; declare const showToast: (message: string, options?: { type?: "success" | "error"; }) => void; declare const ToastRoot: () => react.ReactPortal; export { ToastRoot, showToast };