vue-mdl-snackbar

An MDL Snackbar plugin for Vue.
612 1
Install
npm install vue-mdl-snackbar
Latest Version:1.0.9
Vue:1
License:MIT
Last Updated:Jul 5, 2016
Links: GitHub  ·  npm
Maintainer: thebrubaker

Use this.$notify(message) to throw a snackbar notification from anywhere in your Vue app!

Note: this plugin requires that you have the Material Design Lite stylesheet and script in your application.

To Use

Copy and paste this snippet into your application (hint: I made it a Snackbar.vue component)

<div id="snackbar-notification" class="mdl-js-snackbar mdl-snackbar">
  <div class="mdl-snackbar__text"></div>
  <button class="mdl-snackbar__action" type="button"></button>
</div>

Import VueSnackbar into your main.js file

import VueSnackbar from 'vue-mdl-snackbar'

Install the plugin by running the following in your main.js:

Vue.use(VueSnackbar, '#snackbar-notification')

Run the following on any component to push a snackbar notification

this.$notify(message)

Related Packages

vue-snack

Snackbar plugin to Vue.JS

13,575 37
vuetify-snackbar-queue

Simple plugin for queueing v-snackbars in Vuetify * Extends VSnackbar component...

1,927 11
eos_vue_md_components

A simple set of styled components for Vue JS

492
@wardy484/vue-md-breakpoint

Material Design breakpoints for Vue

2,845 1
materializecss-vuejs-component

SPA materializecss vuejs components

1,235 11

Version History

Version Released Vue License
1.0.9 ^1.0.26 MIT
1.0.7 ^1.0.26 MIT
1.0.6 ^1.0.26 MIT
1.0.5 ^1.0.26 MIT
1.0.4 ^1.0.26 MIT