This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

jpylisela-react-pnotify

0.0.19 • Public • Published

PNotify for React npm version

Overview

Beautiful JavaScript notification component for React. Many options and settings, including desktop notifications, etc.

Fork of https://github.com/zhuber/react-pnotify, with less restrictive dependencies.

Options

  • Animation (animateIn, animateOut)
  • Error, Success, Notices, or Information notification types
  • Desktop notifications
  • Non-blocking
  • Title
  • Message
  • Shadows
  • Delayed transitions

Live PNotify demos and examples

https://sciactive.github.io/pnotify/

Animation

In order to use animation, you will need to include the Animate.css library: https://daneden.github.io/animate.css/

<head>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
</head>

Usage

import { Notification } from 'react-pnotify';

class Demo extends React.Component {
  render() {
    return (

      <Notification
        type='notice'
        title='Notice example - Permanent'
        text='Helpful notice content goes here'
        delay={2000}
        shadow={false}
        hide={false}
        nonblock={true}
        desktop={true}
      />
      <Notification
        type='success'
        title='Success example'
        text='Success message goes here'
        animateIn='zoomInLeft'
        animateOut='zoomOutRight'
        delay={2000}
        shadow={false}
        hide={true}
        nonblock={false}
        desktop={false}
      />
      <Notification
        type='error'
        title='Error example'
        text='Error message goes here'
        animateIn='bounceInLeft'
        animateOut='bounceOutRight'
        delay={2500}
        shadow={true}
        hide={true}
        nonblock={false}
        desktop={false}
      />
      <Notification
        type='info'
        title='Info example'
        text='Information message goes here'
        animateIn='lightSpeedIn'
        animateOut='hinge'
        delay={3000}
        shadow={false}
        hide={true}
        nonblock={false}
        desktop={true}
      />
      <Notification
        type='info'
        title='Info example'
        text='Information message goes here'
        animateIn='flipInX'
        animateOut='flipOutY'
        delay={4000}
        shadow={true}
        hide={true}
        nonblock={false}
        desktop={false}
      />
    );
  }
}

Package Sidebar

Install

npm i jpylisela-react-pnotify

Weekly Downloads

0

Version

0.0.19

License

Apache-2.0

Unpacked Size

88.5 kB

Total Files

32

Last publish

Collaborators

  • jpylisela