UNPKG

@dcodegroup-au/dsg-vue

Version:

Front-end Vue/Tailwind DSG for UntitledUI.

22 lines (21 loc) 894 B
import { ToastPosition } from 'vue3-toastify'; export type { DsgAlertType, DsgAlertProps, DsgAlertComponentProps } from './DsgAlertComponent.vue'; /** * ------------------------------------------------ * # Setup: Props/Variables/Models * ------------------------------------------------ */ export interface DsgAlertOptions { hasCloseButton?: boolean; timeout?: number | false; maxWidthClass?: string; position?: ToastPosition; } export type DsgAlertToastType = "info" | "error" | "warning" | "success"; export declare const toast: { info(title?: string, message?: string, options?: DsgAlertOptions): void; error(title?: string, message?: string, options?: DsgAlertOptions): void; warning(title?: string, message?: string, options?: DsgAlertOptions): void; success(title?: string, message?: string, options?: DsgAlertOptions): void; }; export default toast;