Toast
Better than react-toastify · 8 types · 6 positions · promise · progress · rich
Types
Click any button to fire a toast — Toaster is already mounted in the site layout
Promise toast
Shows loading → resolves to success or error automatically
Shows loading while the promise runs, then switches to success or error
Progress toast
Progress bar updates in real time — auto converts to success on complete
Starts a progress toast that increments every 400 ms
Rich toast — avatar + actions
Collaboration and social notifications with avatar, description, and action buttons
Persistent + dismiss
Use a stable id to update or dismiss a specific toast at any time
Stack — hover to expand
Multiple toasts stack — hover over them to expand the stack
Toasts stack with a collapsed view — hover to expand
Position
Set position on the Toaster component in your app root
Toast position is controlled by the Toaster component. Place it once in your app root with your preferred position.
Toast options
Props
Toaster props
Props