1.0.4 • Published 2 years ago

reactjs-toastify v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Toast

React Toast is a library for showing notifications in your app DEMO

NPM JavaScript Style Guide

Install

npm install --save reactjs-toastify

Usage

import { Fragment } from "react";
import { ToastContainer, Toast } from "reactjs-toastify";

import "reactjs-toast/dist/index.css";

const Example = () => {
  const toggle = () => {
    Toast({
      type= "success",
      message = "Lorem Ipsum is simply dummy text of the printing",
    })
  }
  return (
    <Fragment>
      <button onClick={toggle}>Show Toast</button>
      <NotificationContainer />
    </Fragment>
  );
};

Parameters

NameTypeDescription
mesageBooleanContent to sjow in the toast
typeStringType of toast
delayNumberIt will delay the toast apperaence
positionStringPosition where will display the toast
pauseOnHoverBooleanStops the timer when hover the toast or not
closeIconBooleanWhether to show the close icon or not
themeStringDetermines the theme of the toast
colorStringIt will change the default color of the toast (string, rgba, hex)

License

MIT © https://github.com/vkaswin/react-toast.git

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago