UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

27 lines (26 loc) 890 B
import { Plugin } from 'vue'; import { DialogOptions, DialogHandler } from './dialog/DialogHandler'; export declare const DialogPlugin: Plugin<[DialogOptions?]>; declare module '@vue/runtime-core' { interface ComponentCustomProperties { /** * Dialog handler instance * @description You should install the plugin to use this property * @examl * ```ts * import { DialogPlugin } from 'maz-ui/plugins/dialog' * import { createApp } from 'vue' * * const app = createApp(App) * app.use(DialogPlugin) * * const dialog = useDialog() * dialog.open({ * title: 'Hello', * message: 'This is a dialog', * }) */ $mazDialog: Omit<DialogHandler, 'app'>; } } export { DialogHandler, type DialogOptions } from './dialog/DialogHandler';