maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
26 lines (25 loc) • 830 B
TypeScript
import { Plugin } from 'vue';
import { ToastOptions } from './toast/types';
import { ToastHandler } from './toast/ToastHandler';
export declare const ToastPlugin: Plugin<[ToastOptions?]>;
declare module 'vue' {
interface ComponentCustomProperties {
/**
* Toast handler instance
* @description You should install the plugin to use this property
* @example
* ```ts
* import { ToastPlugin } from 'maz-ui/plugins/toast'
* import { createApp } from 'vue'
*
* const app = createApp(App)
* app.use(ToastPlugin)
*
* const toast = useToast()
* toast.success('Hello, world!')
*/
$mazToast: ToastHandler;
}
}
export { ToastHandler };
export type { ToastOptions, ToastPosition } from './toast/types';