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