TypeScript MIT

react-hot-toast

Smoking Hot React Notifications 🔥

T

timolins

Dernière activité 16 sept. 2026
timolins/react-hot-toast

11 k

étoiles

370

forks

138

issues ouvertes

notificationsreactsnackbartoast-notifications

Ce README est souvent en anglais.

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.

Projets similaires

React notification made easy 🚀 !

TypeScriptjavascriptnotificationreact
Ffkhadra
13,4 k étoiles743

An opinionated toast component for React.

TypeScriptnotificationsreacttoast
Eemilkowalski
13 k étoiles463

Highly customizable notification snackbars (toasts) that can be stacked on top of each other

TypeScriptgoogle-materialjavascriptmaterial-design
Iiamhosseindhv
4,1 k étoiles292