v-toaster v-toaster
v-toaster
A Vue.js component
Installation
Using yarn
yarn add v-toaster
Using npm
npm i --save v-toaster
Demo
Usage
Bundler (Webpack, Rollup)
// You need a specific loader for CSS files like https://github.com/webpack/css-loader // optional set default imeout, the default is 10000 (10 seconds).Vue
Browser
<!-- Include after Vue -->
Usage example
// in your component this.$toaster// ...this$toaster// or custom timeoutthis$toaster this$toasterthis$toasterthis$toaster // or custom add methodthis$toaster// ...
License
This project is licensed under MIT License