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

Package Sidebar

Install

npm i react-web-notifications

Weekly Downloads

44

Version

1.2.9

License

MIT

Unpacked Size

15.1 kB

Total Files

12

Last publish

Collaborators

  • bogdan.m