notipop

1.0.4 • Public • Published

react-alert-toaster

react-alert-toaster is a React library that allows you to create toast notifications in your React application.

Installation

To install react-alert-toaster, you can use npm. Here is an example of how to install react-alert-toaster using npm:

npm install react-alert-toaster

Usage

To use react-alert-toaster, you need to import the ToastContainer component from the react-alert-toaster package. Here is an example of how to use react-alert-toaster in your React application:

import Alert from 'react-alert-toaster';

const App = () => {
  return (
    <div>
      <Alert message={'alert message here!'} alertType={'type'} />
    </div>
  );
};

alertType can be one of the following values: 'success', 'error', 'info'.

Package Sidebar

Install

npm i notipop

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

2.94 kB

Total Files

4

Last publish

Collaborators

  • dcsenadheera