vuetify-toast2
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-b6 • Public • Published

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 />
         })
      }
   }
}

Readme

Keywords

Package Sidebar

Install

npm i vuetify-toast2

Weekly Downloads

8

Version

0.0.1-b6

License

MIT

Unpacked Size

43 kB

Total Files

13

Last publish

Collaborators

  • nguyenthanh1995
  • tachibana-shin