@up-group-ui/react-controls
Version:
Up shared react controls
19 lines (18 loc) • 589 B
TypeScript
/// <reference types="react" />
import { IntentType } from '../../../Common/theming/types';
export declare type NotificationDisplayMode = 'inline' | 'modal' | 'text';
export interface CommonProps {
intent?: IntentType;
dismissable?: boolean;
title?: string;
displayMode?: NotificationDisplayMode;
children?: any;
}
export interface UpNotificationProps extends CommonProps {
message?: JSX.Element | string;
className?: string;
iconSize?: string | number;
durationBeforeClosing?: number;
durationOfAnimation?: number;
onCloseClick?: () => void;
}