2.5.2 โข Published 3 months ago
react-hot-toast v2.5.2
Features
- ๐ฅ 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()
Installation
With pnpm
pnpm add react-hot-toast
With NPM
npm install react-hot-toast
Getting Started
Add the Toaster to your app first. It will take care of rendering all notifications emitted. Now you can trigger toast()
from anywhere!
import toast, { Toaster } from 'react-hot-toast';
const notify = () => toast('Here is your toast.');
const App = () => {
return (
<div>
<button onClick={notify}>Make me a toast</button>
<Toaster />
</div>
);
};
Documentation
Find the full API reference on official documentation.
2.5.0
4 months ago
2.5.2
3 months ago
2.5.1
4 months ago
2.6.0-beta.0
4 months ago
2.4.1
2 years ago
2.4.0-beta.0
3 years ago
2.4.0
3 years ago
2.3.0
3 years ago
2.3.0-beta.1
3 years ago
2.3.0-beta
3 years ago
2.2.0
3 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.0
4 years ago
2.0.0-beta.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.0
4 years ago
0.2.1
4 years ago
0.1.2
4 years ago