UNPKG

vue-toastfic

Version:

**vue-toastfic** is a simple and customizable toast notification library for Vue.js and Nuxt.js projects. Follow the instructions below to integrate and use it in your application.

20 lines (18 loc) 609 B
import { IToastOptions, IToastType } from './props'; export declare function addToast(title: string, type?: IToastType, options?: IToastOptions): void; export declare function removeToast(id: number): void; export declare function useToasts(): { toasts: import('vue').Ref<{ id: number; title: string; type: IToastType; duration?: number | undefined; description?: string | undefined; handle?: { text: string; click: () => void; } | undefined; }[]>; addToast: typeof addToast; removeToast: typeof removeToast; };