1.1.0 • Published 3 years ago

vue-modal-toast-plugin v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

vue-modal-toast-plugin

Version Downloads Issues License

A modal toast plugin for mobile, integrated with Vue.js and Vuex.

Live demo

Features

  • Only 9.0KB minified while 3.5KB gzipped
  • Integrated with Vue.js as a plugin
  • Responsive Design
  • Show multiple toasts meanwhile
  • Able to customize theme (with any scopes)
  • Able to customize TTL for toast auto-hiding

Usage

Register the plugin first.

import Vue from 'vue'
import Vuex from 'vuex'
import vueModalToastPlugin from 'vue-modal-toast-plugin'

const store = new Vuex.Store({ strict: true })

Vue.use(vueModalToastPlugin, { store })

new Vue({ store })

Then include plugin css and add the holder tag to your root Vue node.

<template>
  <div id="app">
    <vue-toast-holder />
  </div>
</template>

<style>
@import '~vue-modal-toast-plugin/dist/vue-modal-toast-plugin.min.css';
</style>

Finally, use it anywhere.

Vue.extend({
  mounted () {
    this.$toast.open('Hello toast!')
  }
})

Credits

License

MIT

1.1.0

3 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago