Socket
Socket
Sign inDemoInstall

reactjs-toastify

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    reactjs-toastify

React Toast is a library for showing notifications in your app


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 16 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc