Vuetigy Nuxt module to show confirmation dialog
- 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
- Add
vuetify-confirm
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
'vuetify-confirm'
]
})
That's it! You can now use vuetify-confirm in your Nuxt app ✨
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 */)
# 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