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
npm install vuetify-snackbar-queue
please note that the auto-height
prop for the VSnackbar
component was deprecated in Vuetify 2 and is no longer available.
npm install vuetify-snackbar-queue@1.0.0
See the docs at Vuetify Snackbar Queue Docs
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>
npm install
npm run serve
npm run build
npm run lint