braid-design-system
Version:
Themeable design system for the SEEK Group
25 lines (22 loc) • 459 B
text/typescript
export interface ToastAction {
label: string;
onClick: () => void;
}
export interface InternalToast {
id: string;
dedupeKey: string;
treatTheme: string;
vanillaTheme: string;
tone: 'positive' | 'critical';
message: string;
shouldRemove: boolean;
description?: string;
action?: ToastAction;
}
export interface Toast {
key?: string;
tone: 'positive' | 'critical';
message: string;
description?: string;
action?: ToastAction;
}