|
|
hace 4 años | |
|---|---|---|
| dist | hace 5 años | |
| example | hace 6 años | |
| src | hace 5 años | |
| .babelrc | hace 6 años | |
| .gitignore | hace 6 años | |
| .npmignore | hace 6 años | |
| LICENCE.md | hace 5 años | |
| README.md | hace 5 años | |
| package-lock.json | hace 4 años | |
| package.json | hace 5 años | |
| webpack.config.js | hace 6 años |
Toast alerts (initially developed for Vue.js with a material-design style)
npm install --save --production toasters
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:
# install dependencies
npm install
# watch files for changes with webpack
npm run dev
# build for production with minification
npm run build