Skip to content
Proyectos

timolins/react-hot-toast

Ver en GitHub

Acerca de

Notificaciones de React que están que arden 🔥

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

What you can do

  • 🔥 Hot by default
  • 🔩 Easily Customizable
  • ⏳ Promise API - Automatic loader from a promise
  • 🕊 Lightweight - less than 5kb including styles

Crecimiento de estrellas medido

in 24h
0
in 7 days
+4
in 15 days
+2
in 1 month
+3

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

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.

Explorar proyectos relacionados

Cargando…