Components/useToast

useToast

Programmatically trigger toast notifications from anywhere in your component tree.

Installation

Usage

API Reference

PropTypeDefaultDescription
toast(options: ToastOptions) => voidFire a new toast notification.
dismiss(id: string) => voidDismiss a specific toast by ID.
dismissAll() => voidDismiss all active toasts.