![]() |
il y a 5 ans | |
---|---|---|
dist | il y a 5 ans | |
example | il y a 5 ans | |
src | il y a 5 ans | |
.babelrc | il y a 5 ans | |
.gitignore | il y a 5 ans | |
.npmignore | il y a 5 ans | |
LICENCE.md | il y a 5 ans | |
README.md | il y a 5 ans | |
package-lock.json | il y a 5 ans | |
package.json | il y a 5 ans | |
webpack.config.js | il y a 5 ans |
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