Back
Toast
Sonner toast variants and real-world message patterns from the codebase.
Basic variants
toast()
toast.success()
toast.error()
toast.warning()
toast.info()
toast.loading()
File operations
Upload success
Upload failure
File rejected
File limit exceeded
Download error
Rename success
Delete success
CRUD / mutations
Record created
Record updated
Record deleted
Mutation error
Async operations (toast.promise)
Promise success (2s)
Promise error (1.5s)
With actions
Error with Copy action
Success with Undo action
Error with Retry action
Duration
Default (3s)
Persistent (Infinity)
Short (1s)