Smoking hot Notifications for React.
Lightweight, customizable and beautiful by default.
- ๐ฅ Hot by default
- ๐ฉ Easily Customizable
- โณ Promise API - Automatic loader from a promise
- ๐ Lightweight - less than 5kb including styles
- โ Accessible
- ๐คฏ Headless Hooks - Create your own with
useToaster()
yarn add react-hot-toast
npm install react-hot-toast
The Toaster will take care of rendering all notifications emitted. Make sure to place it somewhere high up in your app.
import { Toaster } from 'react-hot-toast';
const App = () => {
return (
<div>
<Toaster />
</div>
);
};
Call toast()
anywhere within your app to emit new notifications.
import toast from 'react-hot-toast';
toast.success('Hello World!');
Find the full API reference on official documentation.
react-hot-toast was cooked by Timo Lins ๐จโ๐ณ