butane-toasts

1.0.0-2 • Public • Published

butane-toasts

A small library for creating toast messages

Install

$ npm install butane-toasts --save

Usage

import Toasts from 'butane-toasts';

Toasts.init();

Toasts.add('New toast');

Options

prefix

Toast.init({ prefix: 'custom' });

position

Toast.init({ position: 'bottom-right' });

Options include bottom-right, bottom-left, top-right, top-left.

API

.add(message, timeout, type)

Toasts.add('Failed to submit', 2500, 'success');

.dispose()

Toasts.dispose();

License

MIT License © Alex Carpenter

Readme

Keywords

none

Package Sidebar

Install

npm i butane-toasts

Weekly Downloads

2

Version

1.0.0-2

License

MIT

Unpacked Size

13.7 kB

Total Files

6

Last publish

Collaborators

  • alexcarpenter