Installation
How to install react-toast-msg in your project.
Install react-toast-msg using your preferred package manager:
npm installreact-toast-msg
Peer Dependencies
Ensure you have react and react-dom installed (version 18 or 19).
json1"peerDependencies": {2 "react": "^18 || ^19",3 "react-dom": "^18 || ^19"4}
Styling
Since react-toast-msg uses Tailwind CSS for styling, you should import the CSS file in your main css file (e.g., app/globals.css or src/index.css):
tsx1import "react-toast-msg/style.css";
NOTE: If you are using Tailwind CSS in your project, ensure that your configuration includes the necessary styles or that you are importing the provided CSS.
How is this guide?
Last updated on February 17, 2026