Socket
Socket
Sign inDemoInstall

vue-snackbar

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-snackbar

Material Design Snackbar component for Vuejs


Version published
Weekly downloads
3
Maintainers
1
Install size
5.17 kB
Created
Weekly downloads
 

Readme

Source

vue-snackbar

The Snackbar is a component used to notify a user of an operation's status. It displays at the bottom of the screen. A snackbar may contain an action button to execute a command for the user. Actions should undo the committed action or retry it if it failed for example. Actions should not be to close the snackbar. By not providing an action, the snackbar becomes a toast component

Installation

With NPM

    npm install 'vue-snackbar'

Usage

    import Vue from 'vue';
    import Snackbar from 'vue-snackbar'

    new Vue({
        el: 'body',
        components: {
          Snackbar
        }
    });

In the HTML :

    <snackbar display-when="MessageHasBeenDeleted" message="Message Deleted" action-text="Undo" timeout="5000" :action-handler="handleAction()"></snackbar>

Props

Prop nameDescription
messageMessage text to be shown on the snackbar.
action-textThe text of the action button.
action-handlerYour (the user) custom click handler for when the snackbar's button is clicked.
display-whenSpecifies an event after which the snackbar is to be displayed.

Keywords

FAQs

Last updated on 29 Jun 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