Simple web notifications component for React
$ npm install react-web-notifications --save
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
/>| Prop | Type | Required |
|---|---|---|
| title | string | true |
| icon | string | false |
| body | string | false |
| timeout | number | false |
| onClickFn | function | false |
MIT
