New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-notify-me

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-notify-me

React's module that shows notifications

latest
Source
npmnpm
Version
0.5.5
Version published
Maintainers
1
Created
Source

React notification

Npm Version Month Downloads Npm Licence

NPM

Overview

Example

Install

npm install --save react-notify-me

Usage

import { Notifications } from 'react-notify-me'

render() {
  return (
    <div role="wrapper">
      {this.props.children}
      <Notifications config={{ autoDismiss: 4000, position: 'bottomRight' }} />
    </div>
  )
}
import notify from 'react-notify-me'

componentDidMount() {
  notify({
    content: 'Component has beeen mounted',
  })
}

Props

Notifications component:
nametypedefaultdescription
autoDismissBoolean or NumberfalseTimeout for dismiss notification
positionString'topRight'Playcment. Options: 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'
notify method:
nametypedefaultdescription
contentString or React Component
contentTypeString'text'Type of Content for render method. Options: 'text', 'html', 'component'. By default uses 'text' type, also 'component' type makes same as 'text' type.

##Example

To run example download repository, install dependencies and make npm run npu

Keywords

react

FAQs

Package last updated on 07 Sep 2016

Did you know?

Socket

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