maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
35 lines (34 loc) • 1.07 kB
TypeScript
import { ToastOptions } from './types';
export interface MazToastProps extends ToastOptions {
/**
* The message of the toast
*/
message?: string;
/**
* The type of the toast
*/
type?: ToastOptions['type'];
/**
* The function to destroy the toast
*/
destroy?: () => void;
}
declare function closeToast(): void;
declare const _default: import('vue').DefineComponent<MazToastProps, {
/**
* Close the toast
* @description This is used to close the toast
*/
closeToast: typeof closeToast;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
click: (args_0: Event) => any;
close: () => any;
open: () => any;
}, string, import('vue').PublicProps, Readonly<MazToastProps> & Readonly<{
onClick?: ((args_0: Event) => any) | undefined;
onClose?: (() => any) | undefined;
onOpen?: (() => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
Toast: HTMLDivElement;
}, any>;
export default _default;