Manoj Kumar Boppisetti
2 min readMar 4, 2023
Toast
Toast

What is Toast: Toast is a quick and easy way to display a notification message on your screen. It pops up at the bottom of the page or a designated area, displaying a message for a few seconds before automatically disappearing with an animation.

How to use React Toast Package ( t-react-toast )

Step 1: Install t-react-toast in your React.JS application:

Install package

Step 2 : Import and add ToastComponent in render method of App.tsx

Import and add to app

Step 3: Import ToastService and use it to show toast in your component

Toast usage

Preview of Toast messages.

Toast message preview

This package is highly customisable and allows you to show toast messages at various positions of your web application such as ‘top-right’, ‘top-center’ and ‘top-left’ etc., while also allowing you to set the duration of each toast message.

Live Demo

Documentation

Feel free to raise an issue @ Github Repo Link for any feature request or to report a bug.

Hope you find this article helpful. Please leave a clap if you learnt something. Feel free to post your questions. Happy Coding…!

Manoj Kumar Boppisetti
Manoj Kumar Boppisetti

No responses yet