muse-ui-toast

muse-ui toast plugin
3,245 11
Install
npm install muse-ui-toast
Latest Version:0.3.0
Vue:2
License:MIT
Last Updated:Jun 29, 2018
Links: GitHub  ·  npm
Maintainer: myronliu347

Muse-UI-Toast

Muse-UI plugin toast

travis ci badge Downloads Downloads

Installation

npm install muse-ui-toast -S
// or
yarn add muse-ui-toast

CDN

<link rel="stylesheet" href="https://unpkg.com/muse-ui-loading/dist/muse-ui-toast.all.css"/>
<script src="https://unpkg.com/muse-ui-toast/dist/muse-ui-toast.js"></script>

Usage

import Vue from 'vue'
import MuseUIToast from 'muse-ui-toast';

Vue.use(MuseUIToast);

new Vue({
  methods: {
    toast () {
      this.$toast.message('hello world');
      this.$toast.success('hello world');
      this.$toast.info('hello world');
      this.$toast.warning('hello world');
      this.$toast.error('hello world');
    }
  }
});

// Or
MuseUIToast.message('hello world');
MuseUIToast.success('hello world');
MuseUIToast.info('hello world');
MuseUIToast.warning('hello world');
MuseUIToast.error('hello world');

API

config

Vue.use(MuseUIToast, config) change default config

export default {
  position: 'bottom',               // position
  time: 2000,                       // show time length
  closeIcon: 'close',               // close icon
  close: true,                      // show close button
  successIcon: 'check_circle',      // success icon
  infoIcon: 'info',                 // info icon
  warningIcon: 'priority_high',     // warning icon
  errorIcon: 'warning'              // error icon
};

config (config

Related Packages

muse-ui-loading

Muse-UI plugin loading

3,401
muse-ui-message

Muse-UI plugin message box

3,307
vue-toastification

Toasts for Vue made easy!

8,941,430 3,362
vuetify-toast-snackbar

Basic Vue toast service that uses Vuetify Snackbar component.

47,317 127
vuetify-toast-snackbar-ng

Basic Vue toast service that uses Vuetify Snackbar component for Vuetify 2.3+

25,369 22

Version History

Version Released Vue License
0.3.0 ^2.5.0 MIT
0.2.1 ^2.5.0 MIT
0.1.1 ^2.5.0 MIT
0.1.0 ^2.5.0 MIT