vuetify2-toast
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Vuetify2-toast

Installation

NPM:

npm i vuetify2-toast --save

YARN:

yarn add vuetify2-toast

Usage

import Vue from "vue"
import Toast2 from "vuetify2-toast"

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 vuetify2-toast

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

45 kB

Total Files

17

Last publish

Collaborators

  • dimetrix