Socket
Socket
Sign inDemoInstall

vue-mdl-snackbar

Package Overview
Dependencies
35
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-mdl-snackbar

An MDL Snackbar plugin for Vue.


Version published
Weekly downloads
9
increased by50%
Maintainers
1
Install size
70.5 MB
Created
Weekly downloads
 

Readme

Source

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)

Keywords

FAQs

Last updated on 05 Jul 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc