Basic Usage
Learn the basics of triggering toasts.
The toast function is a versatile tool for showing notifications.
Simple Notifications
The most common way to show a toast is by using one of the shorthand methods:
tsx
Custom Message
You can pass any string as the first argument to these methods.
tsx
Timing
By default, toasts disappear after 3 seconds. You can change the global duration in ToastContainer or set it per-toast (see Advanced Usage).
How is this guide?
Last updated on April 21, 2026