Files
heroui-vue/packages/vue/src/components/toast/constants.ts
T

21 lines
697 B
TypeScript

// Gap between toasts in pixels.
export const DEFAULT_GAP = 12;
// Visual cap on rendered toasts; older ones fade out but keep running.
export const DEFAULT_MAX_VISIBLE_TOAST = 3;
// How much each toast behind the front one scales down.
export const DEFAULT_SCALE_FACTOR = 0.05;
// Toast width in pixels.
export const DEFAULT_TOAST_WIDTH = 460;
// Auto-dismiss timeout in milliseconds.
export const DEFAULT_TOAST_TIMEOUT = 4000;
// How long a closing toast stays mounted for its exit animation, in milliseconds.
export const DEFAULT_EXIT_DURATION = 300;
// Modifiers match KeyboardEvent boolean props; other keys match event.code.
export const DEFAULT_HOTKEY: string[] = ["altKey", "KeyT"];