Toast notifications for React apps, set up in seconds and easy to customize
open sourceMITfree
React-Toastify adds toast notifications to a React app: you render a ToastContainer once and call toast() from anywhere. Toasts are easy to customize and can render a React component, with right-to-left support, swipe to close in a direction you choose, any animation (animate.css works well), onOpen and onClose hooks, per-toast behaviour, programmatic removal, pausing when the window loses focus and a progress bar for the time left. It installs with npm install react-toastify and is MIT licensed.
Problems it solves
- I want to show success and error notifications in my React app
- I need toast messages that pause when the user switches tabs
- I want customizable snackbar notifications in React
Features
- toast() from anywhere with one ToastContainer
- Custom React components inside toasts
- RTL support and swipe to close
- Custom animations
- onOpen and onClose hooks
- Pause on window blur and a progress bar
- Per-toast behaviour and programmatic removal