An opinionated toast component for React.
npm install sonnerhttps://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.
To start using the library, install it in your project:
``bash`
npm install sonner
Add to your app, it will be the place where all your toasts will be rendered.toast()
After that you can use from anywhere in your app.
`jsx
import { Toaster, toast } from 'sonner';
// ...
function App() {
return (
Find the full API reference in the documentation.