ask-sonner
Guidance on setting up, styling, and troubleshooting Sonner, a React toast library
What it does
Guide to Sonner, the React toast library — install and wire up the Toaster, pick the right toast() call, promise and loading toasts, updating, dismissing and persisting toasts, styling, theming and icons, positioning and multiple toasters. Use when working with Sonner or troubleshooting it — toasts that don't appear, appear twice, lose their styles, ignore Tailwind classes, sit behind a modal, or don't follow dark mode.
Quality judgment
The document provides thorough, well-organized coverage of Sonner setup, API patterns, styling escalation, and troubleshooting. It clearly distinguishes between default and headless approaches, covers edge cases like dark mode and positioning, and includes practical recipes for updating and persisting toasts. The only minor deduction is the absence of explicit TypeScript type signatures, but the prop tables and examples more than compensate.