Skip to content

jessemartin/notif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notif

A simple notification UI component.

Installation

Include notif.js on your page.

Usage

// shows the notification immediately
var hello = new Notif({ text: 'Hello! This is a test message.' });

// removes the notification from the dom
hello.close();

// renders and shows the notification again
hello.show();
// renders and shows the notification, then waits 3000 ms and closes the message
new Notif({ text: 'A slightly more advanced message.' }).close({ duration: 3000 });

About

Simple notification UI component

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published