Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 1.33 KB

README.md

File metadata and controls

63 lines (47 loc) · 1.33 KB

vuetify-snackbar-queue

Simple plugin for queueing v-snackbars in Vuetify

  • Extends VSnackbar component, allowing an array of snackbar items to be passed in.
  • Queues Snackbars displaying one at a time

Install for use with Vuetify 2.*

npm install vuetify-snackbar-queue

See Code Sandbox Example

please note that the auto-height prop for the VSnackbar component was deprecated in Vuetify 2 and is no longer available.

Install for use with Vuetify 1.5.*

npm install [email protected]

See Code Sandbox Example

Latest component docs

See the docs at Vuetify Snackbar Queue Docs

Use as Plugin

Import as plugin in your main.js file

//main.js
import Vue from 'vue'
import VuetifySnackbarQueue from 'vuetify-snackbar-queue'

Vue.use(VuetifySnackbarQueue)

Use in templates

<template>
    <v-snackbar-queue
        :items="items"
        @remove="() => {}"
    ></v-snackbar-queue>
</template>

Development Setup

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint