Smoking hot Notifications for React.
Lightweight, customizable and beautiful by default.
Cooked by Timo Lins 👨🍳
- 🔥 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-toastnpm install react-hot-toastAdd the Toaster to your app first. It will take care of rendering all notifications emitted. Now you can trigger toast() from anywhere!
importtoast,{Toaster}from'react-hot-toast';constnotify=()=>toast('Here is your toast.');constApp=()=>{return(<div><buttononClick={notify}>Make me a toast</button><Toaster/></div>);};Find the full API reference on official documentation.