vuetify-toast2
v0.0.1-b6
Published
## Usage
Downloads
15
Readme
Vuetify-toast 2
Usage
import Vue from "vue"
import Toast2 from "vuetify-toast2"
Vue.use(Toast2)
App.vue
<template>
<v-app>
<vue-toast-group name="default">
</v-app>
</template>
** name: this is your optional name to install an element that allows you to use $toast. Yes you can get more by specifying different names ** ** View more prop in https://vuetifyjs.com/en/api/v-snackbar **
export default {
methods: {
showToast() {
this.$toast.success("default", "Hello success toast")
/// or
this.$toast.success("default", {
$text: "Hello success toast",
/// option for component view in: https://vuetifyjs.com/en/api/v-snackbar
/// the option here overrides the options at <vue-toast-group />
})
}
}
}