Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-mdl-snackbar

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-mdl-snackbar

An MDL Snackbar plugin for Vue.

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 05 Jul 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc