Skip to content

claeusdev/butane-toasts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🍞 A small library for creating toast messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.4%
  • CSS 33.6%