oak-frontend-base/es/types/Notification.d.ts

14 lines
451 B
TypeScript

export type NotificationProps = {
message: React.ReactNode;
description: React.ReactNode;
type?: 'info' | 'success' | 'warning' | 'error';
actions?: React.ReactNode;
icon?: string | boolean;
closeIcon?: string | boolean;
duration?: number | null;
placement?: 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight';
zIndex?: number;
onCloseBtnClick?: Function;
onDurationEnd?: Function;
};