UNPKG

@byloth/nuxt-vuert-module

Version:

The headless alerts, modals, notifications & popups module for Nuxt.js craftsmen. ℹ

11 lines (10 loc) 328 B
import { defineNuxtPlugin } from "#app"; import { createVuert, useVuert } from "@byloth/vuert"; export default defineNuxtPlugin({ name: "vuert", setup: (nuxtApp) => { const options = nuxtApp.$config.public.vuert || {}; nuxtApp.vueApp.use(createVuert(options)); return { provide: { vuert: useVuert() } }; } });