Aucune description

Jonathan 8438e61ff5 v2.0.0 il y a 5 ans
dist 8438e61ff5 v2.0.0 il y a 5 ans
example 40633f9b0a docs: fixed and improved il y a 5 ans
src 06df801c39 fix: styles loaded via webpack instead of example il y a 5 ans
.babelrc 37d9c300b9 refactored structure & webpack il y a 5 ans
.gitignore 7a5230e223 feat: position top, bottom, left and right il y a 5 ans
.npmignore 7a5230e223 feat: position top, bottom, left and right il y a 5 ans
LICENCE.md 1bfbbd17aa initial 1.1.2 release: from archived repo il y a 5 ans
README.md 40633f9b0a docs: fixed and improved il y a 5 ans
package-lock.json 06df801c39 fix: styles loaded via webpack instead of example il y a 5 ans
package.json 8438e61ff5 v2.0.0 il y a 5 ans
webpack.config.js 06df801c39 fix: styles loaded via webpack instead of example il y a 5 ans

README.md

toasters

Toast alerts (initially developed for Vue.js with a material-design style)

Installation

npm install --save --production toasters

Usage

HTML:

<div id="toasts-container" class="position-right position-bottom"></div>

JS:

import Toast from "toasters";

new Toast({
	content: "Hello World",
	persistant: true
});

Preview:

preview of visible toast on webpage

Potential future additions

  • Design improvements
  • Error handling (i.e. you haven't provided any content for the toast)
  • Ability to parse markdown or html
  • Ability to change to persistent
  • Small reaction to drag e.g. push it over the edge

Contributing

# install dependencies
npm install

# watch files for changes wtih webpack
npm run dev

# build for production with minification
npm run build