react-hot-toast
TypeScript icon, indicating that this package has built-in type declarations

2.5.2 • Public • Published

react-hot-toast - Try it out

NPM Version minzipped size Build Status

Smoking hot Notifications for React.
Lightweight, customizable and beautiful by default.


Cooked by Timo Lins 👨‍🍳

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.5.2468,987latest
2.6.0-beta.0318beta

Version History

VersionDownloads (Last 7 Days)Published
2.5.2468,987
2.6.0-beta.0318
2.5.189,493
2.5.05
2.4.1433,162
2.4.074,841
2.4.0-beta.025
2.3.09,963
2.3.0-beta.13
2.3.0-beta4
2.2.038,232
2.1.110,938
2.1.0443
2.0.0978
2.0.0-beta.03
1.0.28,138
1.0.1277
1.0.04
0.5.026
0.4.02
0.3.02
0.2.12
0.1.210

Package Sidebar

Install

npm i react-hot-toast

Weekly Downloads

1,135,856

Version

2.5.2

License

MIT

Unpacked Size

180 kB

Total Files

26

Last publish

Collaborators

  • timolins