Sonner

An opinionated toast component for React.

The Sonner component provides a toast notification system for displaying temporary messages. It supports multiple variants (success, info, warning, error), actions, promises, and customizable positioning. Built from scratch using React and native HTML elements. No dependencies on any UI library.

Quick Install

Install via shadcn/ui CLI

Examples

Default

Success

Info

Warning

Error

Action

Cancel

Promise