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

View on GitHub

See the full source code on GitHub