UNPKG

@abgov/ui-components-common

Version:

Government of Alberta - UI Web components

20 lines (19 loc) 712 B
export type GoabTemporaryNotificationType = "basic" | "success" | "failure" | "indeterminate" | "progress"; export type GoabNotificationOptions = { type: GoabTemporaryNotificationType; uuid: string; cancelUUID?: string; duration?: "long" | "medium" | "short" | number; actionText?: string; action?: () => void; visible: boolean; }; declare function show(message: string, opts?: Partial<GoabNotificationOptions>): string; declare function dismiss(uuid: string): void; declare function setProgress(uuid: string, progress: number): void; export declare const TemporaryNotification: { show: typeof show; dismiss: typeof dismiss; setProgress: typeof setProgress; }; export {};