0.5.5 • Published 9 years ago

react-notify-me v0.5.5

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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

0.5.5

9 years ago

0.5.4

9 years ago

0.5.3

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.4

10 years ago

0.4.3

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago