@skmd87/vuetify-confirm
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @skmd87/vuetify-confirm

Weekly Downloads

3

Version

1.0.12

License

MIT

Unpacked Size

13.4 kB

Total Files

17

Last publish

Collaborators

  • skmd87