sonner (emilkowalski/sonner)
Searching Database…
What is this?
Sonner is an opinionated toast component for React that lets you show notification messages from anywhere in your app.
Is it a full notification system or just a component?
It is a single React component library you render once (a Toaster) and then trigger toasts from anywhere via a function call.
How do I add it to a project?
Install the library into your project, render the Toaster component in your app, then call toast() from anywhere to show a message.
Do I need anything else besides React to use it?
No extra backend or service is needed; there is also an /ask-sonner skill that can help install it and answer Sonner-related questions.
Where can I find all the configuration options?
The full API reference is available in the project documentation.
Is there styling included out of the box?
Yes, a styles.css file is bundled with the library build, so toasts come styled without extra setup.
Can I use it to show success, error, or custom toasts?
As a toast component library the typical pattern is calling toast() with different variants, though the README itself only shows the basic usage and points to the docs for the full API.
What are similar projects?
react-toastify, rare-ui, chakra-ui, sweetalert2, ant-design-mobile, react-transition-group, react-bits, astryx
Which topics is it in?
toast, reactjs, notifications, component-library, nextjs, ui-components, css, react, npm, frontend, library, typescript