Sonner

Feedback

Modern toast notification system with promise tracking, rich content support, and position configuration

Toast Notifications

Toast Types

Color Variants

Action Buttons

Loading States

Promise Handling

Persistent Toasts

Usage Guidelines

When to Use

  • Modern toast notifications
  • Promise-based notifications
  • Rich toasts

Accessibility

  • Live region announcements
  • Actions keyboard accessible

Performance

  • Efficient stacking
  • Promise-based lifecycle

Common Mistakes

  • Promise toast without all states
  • Too many simultaneous toasts

Frequently Asked Questions

Sonner is a modern toast system with promise tracking, rich content, and stacking support.
Yes, Sonner can show loading/success/error based on promise state.

View on GitHub

See the full source code on GitHub