react-web-notifications
TypeScript icon, indicating that this package has built-in type declarations

1.2.9 • Public • Published

React Web Notifications

Simple web notifications component for React

NPM

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.912latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.912
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00
1.1.20
1.1.10
1.1.00
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.30
0.0.10

Package Sidebar

Install

npm i react-web-notifications

Weekly Downloads

12

Version

1.2.9

License

MIT

Unpacked Size

15.1 kB

Total Files

12

Last publish

Collaborators

  • bogdan.m