useToast
Programmatically trigger toast notifications from anywhere in your component tree.
Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| 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. |