@up-group-ui/react-controls
Version:
Up shared react controls
16 lines (15 loc) • 414 B
TypeScript
/// <reference types="react" />
import { IntentType } from '../../../Common/theming/types';
export interface UpToastProps {
message?: JSX.Element | string;
children?: JSX.Element;
onClose?: () => void;
intent?: IntentType;
autoDismissable?: boolean;
duration?: number;
title?: JSX.Element | string;
}
export interface UpToastState {
isVisible: boolean;
isUnmounting: boolean;
}