Vanilla Web Component for interacting with the Web Notifications API
npm install web-notification##### Instalation
``
npm i --save web-notification
bower install --save web-notification
`
#### Properties
| Name | Description |
| -------------- | ------------- |
| title | The title of the notification |
| body | body of the notification |
| icon | the icon to display with the notification |
| timeout | amount of time to display notifcation before auto hiding |
| notify-on-load | trigger notification as soon as the component is created |
#### API
| Name | Description |
| --------- | ------------- |
| .notify() | Manually triggers the notification |
#### Example
`HTML
body="Hello World"
icon="homer-simpson.jpg"
timeout="1000">
icon="marge-simpson.png"
notify-on-load="true">
`
#### Dynamic
To dnyamically add new notification elements.
`JS
var createWebNotification = require('web-notification'); // or available by 'createWebNotification' on window if not using modules
var myNotification = createWebNotification({
title: 'My Title',
body: 'My Body'
});
document.appendElement(myNotification);
``