README
snackbar
Lightweight feedback notifications
Install
$ npm install --save snackbar
Usage
First of all make sure to import the snackbar.scss file into your project.
Use the snackbar.js API
const snackbar = require('snackbar');
snackbar.show('Ohai!');
API
snackbar.show(message)
message
Type string
snackbar.duration
Time to show snackbar before hiding (default 5000)
Type number
snackbar.gap
Time between sequential snackbars (default 250)
Type number
License
MIT © André Ruffert