equal-vue
Version:
Equal is a Vue 3 hackable UI library empowered by tailwindcss
17 lines (16 loc) • 506 B
TypeScript
import { VNode } from 'vue';
interface INotificationOptions {
id: number | null;
title: string | number;
text: string | number;
show: boolean;
duration: number;
placement: string;
onClose: () => void;
[key: string]: any;
}
export declare const useNotification: {
(): (options?: Partial<INotificationOptions>, children?: VNode) => (onClose?: (() => void) | undefined) => void;
close(id: number, props?: Record<string, any>, onClose?: () => void): void;
};
export {};