Ei kuvausta

Jonathan 058016a7bd v2.1.2: security fixes and small bug fix 4 vuotta sitten
dist b83424cf45 v2.1.2: security fixes and small bug fix 4 vuotta sitten
example cd54b352a7 fix: interaction with content is not blocked 5 vuotta sitten
src b83424cf45 v2.1.2: security fixes and small bug fix 4 vuotta sitten
.babelrc 37d9c300b9 refactored structure & webpack 5 vuotta sitten
.gitignore 7a5230e223 feat: position top, bottom, left and right 5 vuotta sitten
.npmignore 7a5230e223 feat: position top, bottom, left and right 5 vuotta sitten
LICENCE.md b83424cf45 v2.1.2: security fixes and small bug fix 4 vuotta sitten
README.md 90dc036fb9 v2.1.0 5 vuotta sitten
package-lock.json b83424cf45 v2.1.2: security fixes and small bug fix 4 vuotta sitten
package.json b83424cf45 v2.1.2: security fixes and small bug fix 4 vuotta sitten
webpack.config.js b83424cf45 v2.1.2: security fixes and small bug fix 4 vuotta sitten

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