# react-hot-toast

> Lightweight toast library for React with a headless useToaster hook for fully custom UI.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/react-hot-toast

free

Lightweight toast library for React with a headless useToaster hook for fully custom UI.

by Timo Lins[GitHub](https://github.com/timolins/react-hot-toast)[npm](https://npmjs.com/package/react-hot-toast)

[visit](https://react-hot-toast.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://react-hot-toast.com](https://react-hot-toast.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Sonner](https://tastebase.ehsanulsiam.workers.dev/browse/sonner)

Opinionated toast component with stacking, swipe to dismiss and promise toasts; ports for Vue, Svelte, Solid and Angular.

no preview

### [canvas-confetti](https://tastebase.ehsanulsiam.workers.dev/browse/canvas-confetti)

Fire performant confetti from any point on the page with one function call.

no preview

### [Lenis](https://tastebase.ehsanulsiam.workers.dev/browse/lenis)

Smooth, inertia-based wheel scrolling that keeps native scroll position, sticky and anchors working.

no preview

### [Glisse](https://tastebase.ehsanulsiam.workers.dev/browse/glisse)

A faithful web implementation of Apple's Liquid Glass: refracting buttons, switches, tab bars and menus.

## For your agent

##### Install

`npm i react-hot-toast`

##### Use it for

- toasts rendered with your own components via the headless useToaster hook
- an existing app that already uses it (no reason to migrate)

##### Skip it when

- a new project wanting the polished stacked look: use sonner
- the same inline-feedback cases as any toast: validation errors and in-place confirmations belong next to the control

##### What's inside14 free

- toast()
- toast.success
- toast.error
- toast.loading
- toast.promise
- toast.custom
- toast.dismiss
- toast.remove
- Toaster
- ToastBar
- useToaster()
- useToasterStore()
- Multi Toaster
- Styling

##### Facts

**Frameworks**
react

**Styling**
css-in-js

**Weight**
small

**Accessibility**
ok

**Maturity**
established

**License**
MIT

**Price**
Free

##### Alternatives

[Sonner](https://tastebase.ehsanulsiam.workers.dev/browse/sonner)

```
import toast, { Toaster } from 'react-hot-toast'

<Toaster />

<button onClick={() => toast.success('Saved')}>Save</button>
```

https://react-hot-toast.com

Loading website

[Visit](https://react-hot-toast.com/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
