react-life-design
Version:
Life Design UI components
24 lines (23 loc) • 584 B
TypeScript
import * as React from 'react';
interface IProps {
active: boolean;
type?: string;
onClose: (boolean: boolean) => void;
onConfirm?: any;
onConfirmText?: string;
selector: string;
css?: string;
asyncClose?: (e?: Function) => void;
onConfirmType?: string;
}
export default class Modal extends React.PureComponent<IProps> {
el: HTMLElement | Node | null;
state: {
animation: string;
};
componentDidMount(): void;
onClose: () => Promise<void>;
onConfirm: () => any;
render(): false | React.ReactPortal;
}
export {};