Components/useToast

useToast

Programmatically trigger toast notifications from anywhere in your component tree.

Installation

Usage

API Reference

PropTypeDefaultDescription
toast(options: ToastOptions) => void—Fire a new toast notification.
dismiss(id: string) => void—Dismiss a specific toast by ID.
dismissAll() => void—Dismiss all active toasts.