A small library for creating toast messages
$ npm install butane-toasts --save
import Toasts from 'butane-toasts';
Toasts.init();
Toasts.add('New toast');
Toast.init({ prefix: 'custom' });
Toast.init({ position: 'bottom-right' });
Options include bottom-right
, bottom-left
, top-right
, top-left
.
Toasts.add('Failed to submit', 2500, 'success');
Toasts.dispose();
MIT License Β© Alex Carpenter