1.0.3 • Published 2 days ago

@skmd87/vuetify-confirm v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 days ago

@skmd87/vuetify-confirm

npm version npm downloads License Nuxt

Vuetigy Nuxt module to show confirmation dialog

Quick Setup

  1. Add @skmd87/vuetify-confirm dependency to your project
# Using pnpm
pnpm add  @skmd87/vuetify-confirm

# Using yarn
yarn add @skmd87/vuetify-confirm

# Using npm
npm install @skmd87/vuetify-confirm
  1. Add vuetify-confirm to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'vuetify-confirm'
  ]
})

That's it! You can now use vuetify-confirm in your Nuxt app ✨

Usage

In your layout, add vuetify-confirm component inside vuetify app

 <v-app>
   <VuetifyConfirm />
 </v-app>

and you can use it like this:

const confirm = useConfirm()
.
.
.
confirm('Are you sure?')
 .then((v) => /* do something if accepted */ )
 .catch(e=> /* do something if rejected */)

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release