React Hot Toast
UI library · Free
A small React notification library with a Promise state API: it displays operation results and supports customizable message appearance.
Also known as: timolins/react-hot-toast; react-hot-toast

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Display the result of an asynchronous React operation
- Connect the toast lifecycle to an application operation's Promise
Example workflow
A possible workflow; this is not a report of hands-on testing.
Display the result of an asynchronous React operation.
Before you start
- The component's design, states, and data.
- A compatible framework and the project's styles.
Steps
- Define the action's success/error/loading messages.
- Connect the toast lifecycle to an application operation's Promise.
- Configure styles and check empty, loading, and error states.
Check your result
- The keyboard, focus indicators, and a screen reader let users complete the action.
- The component works on a narrow screen and with long data values.
Choosing React Hot Toast
Display the result of an asynchronous React operation
Choose this when
- Display the result of an asynchronous React operation
- Connect the toast lifecycle to an application operation's Promise
Requirements
- Place Toaster in the React tree to provide a display area for toast calls; consider useToaster for your own UI.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- The toast call and display component have different roles: a notification will not become visible without the display part.
Frequently asked questions
What can you use for free in React Hot Toast?
Code and local use under MIT.
What additional costs might arise with React Hot Toast?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for React Hot Toast?
MIT for the code; dependencies have separate licenses.
How do you get started with React Hot Toast?
Define the action's success/error/loading messages. Connect the toast lifecycle to an application operation's Promise. Configure styles and check empty, loading, and error states.
Is Toaster needed when toast is called from different application parts?
The README shows one mounted Toaster and a toast call from a handler. It also offers the headless useToaster API for your own visual implementation. A possible scenario is centralized operation result display with notification calls from different components.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- React Hot Toast
- UI
- Development