1.2.9 • Published 1 year ago
react-web-notifications v1.2.9
React Web Notifications
Simple web notifications component for React
Install
$ npm install react-web-notifications --save
Usage
import WebNotification from 'react-web-notifications'
<WebNotification
title="Hello, World!" // the title prop is required
icon="path/to/image.jpg"
body="This is a web notification"
timeout={9000}
onClickFn={ () => window.open('http://www.google.com/', '_blank') } // open your own site on notification click
/>
API
Prop | Type | Required |
---|---|---|
title | string | true |
icon | string | false |
body | string | false |
timeout | number | false |
onClickFn | function | false |
MIT
1.2.9
1 year ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.0
4 years ago
1.1.1
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.1.2
4 years ago
1.1.0
5 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago