1.2.8 • Published 6 years ago

handy-notification v1.2.8

Weekly downloads
71
License
ISC
Repository
github
Last release
6 years ago

Handy-Notification

Google+ style notification which comes from the bottom to notify.

Demo

npm version

Quick links

  1. Screenshot
  2. Usage
  3. API
  4. Contribute

Screenshot

alt text

The above screenshot is from React-Instagram-clone-2.0

Usage

  1. First install the package with npm or Yarn.

    # with npm
    npm install handy-notification
    
    # or with Yarn
    yarn add handy-notification
  2. Create a div with class handy-notify.

    <div class='handy-notify'>
        <span></span>
    </div>
  3. And here comes the fun part.

    import Notify from 'handy-notification'
    Notify({
        value: "Hello, how are you?",   // Message to be displayed
        onClick: e => console.log('Clicked!!'),  // Function executed when clicked on the notification bar
        done: () => console.log('I notified you & went back to the bottom!')    // function to be executed when you're notified
    })

Example

npm run example

Run the above command and open http://localhost:7007

API

Notify(options:Object)
options = {
    beforeTop: String,
    afterTop: String,
    value: String,
    selector: jQueryElement,
    onClick: Function,
    done: Function
}

Contribute

Show your support by 🌟 the project!!

Feel free to contribute!!

Thanks for reading!!

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.1.0

6 years ago

1.0.38

6 years ago

1.0.37

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago