Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sonner

> 前端框架
Open source

An opinionated toast component for React.

12.7K stars0 likes1 views
WebsiteGitHub

About

An opinionated toast component for React.

https://github.com/vallezw/sonner/assets/50796600/59b95cb7-9068-4f3e-8469-0b35d9de5cf0

Sonner is an opinionated toast component for React. You can read more about why and how it was built here.

Usage

To start using the library, install it in your project:

bash
npm install sonner

Alternatively you can use the /ask-sonner skill to do it for you and help you with any other Sonner-related questions.

bash
npx skills add https://github.com/emilkowalski/skills --skill ask-sonner

Add <Toaster /> to your app, it will be the place where all your toasts will be rendered. After that you can use toast() from anywhere in your app.

javascript
import { Toaster, toast } from 'sonner';

// ...

function App() {
  return (
    

  );
}

Documentation

Find the full API reference in the documentation.

Issues· 77 open

View all issuesOpen on GitHub
  • #786

    `Toaster` remount re-shows a toast that was still active when it unmounted, and keeps re-showing it indefinitely (2.0.7 → 2.0.8)

    Updated Sep 9, 2026
  • #782

    Toaster leaks matchMedia change listeners when theme prop changes or on unmount

    Updated Aug 15, 2026
  • #781

    Docs: three prop-table errors (offset default, hotkey type, containerAriaLabel placement)

    Updated Aug 14, 2026
  • #779

    Toast swipe-to-dismiss never resets on pointercancel, only pointerup

    Updated Aug 13, 2026
  • #730

    Bug: Updating toast during dismiss animation results in skipped display

    Updated Aug 9, 2026
  • #770

    Sonner animations disappear when Windows “Show animations” is disabled

    Updated Jul 11, 2026
  • #678

    Toast is not centered when using `w-auto`

    Updated Jun 11, 2026
  • #761

    Dynamic/scoped `<Toaster />` configuration support

    Updated May 24, 2026
  • #759

    Add ability to hook into method calls for side effects

    Updated May 12, 2026
  • #747

    Allow changing toast close button position

    Updated May 10, 2026

> Tags

TypeScriptnotificationsreacttoast

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架