What problem does it solve? Integrating the Sonner toast library into React and Next.js apps often leads to subtle bugs: toasts that never appear, duplicate notifications, styles that ignore Tailwind classes, or toasts hidden behind modals. This Skill provides the exact setup pattern, API reference, and a symptom-to-fix troubleshooting table so you resolve these issues immediately. ## Core Features & Use Cases - Correct Setup Guidance: Enforces the two-piece pattern — one <Toaster /> mounted at the root and toast() called from client code — preventing duplicate or missing toasts. - Call Selection & Recipes: Maps each need (success, loading, promise, action buttons, custom JSX) to the right toast() variant, including updating toasts by id and persisting with duration: Infinity. - Styling Escalation Ladder: Walks from defaults and richColors through classNames with !important up to fully headless toast.custom() for design-system integration. - Use Case: Your toast renders behind a modal in a Next.js app. The troubleshooting table identifies the stacking-context cause and tells you to move <Toaster /> to the document root outside any portal container. ## Quick Start Ask how to set up Sonner in a Next.js layout and show a success toast after a form submission.