Sem descrição

Jonathan d9696c1e59 v2.1.0 há 5 anos atrás
dist fc1503226a feat: support dragging for touch devices há 5 anos atrás
example cd54b352a7 fix: interaction with content is not blocked há 5 anos atrás
src fc1503226a feat: support dragging for touch devices há 5 anos atrás
.babelrc 37d9c300b9 refactored structure & webpack há 5 anos atrás
.gitignore 7a5230e223 feat: position top, bottom, left and right há 5 anos atrás
.npmignore 7a5230e223 feat: position top, bottom, left and right há 5 anos atrás
LICENCE.md 1bfbbd17aa initial 1.1.2 release: from archived repo há 5 anos atrás
README.md d9696c1e59 v2.1.0 há 5 anos atrás
package-lock.json fc1503226a feat: support dragging for touch devices há 5 anos atrás
package.json d9696c1e59 v2.1.0 há 5 anos atrás
webpack.config.js 06df801c39 fix: styles loaded via webpack instead of example há 5 anos atrás

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 id="toasts-content">
    <!-- toasts will be added or removed from here -->
  </div>
</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

Contributing

# install dependencies
npm install

# watch files for changes with webpack
npm run dev

# build for production with minification
npm run build