Description
React-Toastify is a React library for adding notifications, called toasts, to an app. It is meant for developers who want to show short messages to users without building their own notification system. The README says it is easy to set up, and you install it as a package and then follow the documentation to start. It is designed to be customized, with support for right-to-left languages and a choice of swipe direction for closing a toast, and you can swipe a toast away. Animations are easy to change: the README says it works well with animate.css, for example. A toast can display a full React component, not just text, and the library provides hooks that give that component access to the props it was rendered with. You can remove a toast programmatically, set a behaviour per toast, and update a toast that is already showing. It pauses a toast's timer when the window loses focus, and it has a progress bar for the remaining time. You can control the progress bar yourself, limit how many toasts show at once, and pause the timer in code. Stacked notifications and a dark mode are included. The project has a demo, a contributing guide, and a list of contributors and sponsors.…
Highlights
- Simple setup for toast notifications
- Swipe to close, with a chosen direction
- Full React components inside a toast
- Pause on focus loss and a progress bar
- Stacked notifications and dark mode
Ratings & Reviews
No ratings yet
Be the first to rate react-toastify.
People also visit

react-notifications-component
React component for creating notifications on the fly
react-toastify FAQ
What is React-Toastify?
A React library for showing notifications, called toasts, in your app.
Can a toast show more than text?
Yes. The README says a toast can display a React component, and hooks give that component access to its props.
How do I control how many show at once?
The library lets you limit the number of toasts displayed at the same time.
Does it support right-to-left text?
Yes. The README lists RTL support among its features.
How do I animate a toast?
You can use the animation of your choice. The README says it works well with animate.css.
Is it free?
Yes. It is released under the MIT licence, and its source is on GitHub.
What are the best react-toastify alternatives?
Popular alternatives to react-toastify include react-hot-toast, react-notifications-component and @aminekun90/react-toast. See all react-toastify alternatives


















