vue-sui-toast

0.0.4 • Public • Published

vue-sui-toast

Vue 2.x port of sui mobile toast component

Install

npm install vue-sui-toast

Usage

import Vue from 'vue';
import vueSuiToast from 'vue-sui-toast';

Vue.use(vueSuiToast);

new Vue({
    el: '#container',
    methods: {
        toast(){
            this.$toast('success');
        }
    }
});

API

vm.$toast(msg[, duration, extraClass]);
  • msg, the toast message, required
  • duration, toast duration, default to 2000ms
  • extraClass, extrasClass added to toast, default to empty

Thanks To

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i vue-sui-toast

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • treri