1 | import * as React from 'react';
|
2 | import { CSSModule } from './utils';
|
3 | import { FadeProps } from './Fade';
|
4 |
|
5 | export interface ModalProps extends React.HTMLAttributes<HTMLElement> {
|
6 | [key: string]: any;
|
7 | isOpen?: boolean;
|
8 | autoFocus?: boolean;
|
9 | size?: string;
|
10 | toggle?: React.KeyboardEventHandler<any> | React.MouseEventHandler<any>;
|
11 | keyboard?: boolean;
|
12 | backdrop?: boolean | 'static';
|
13 | scrollable?: boolean;
|
14 | onEnter?: () => void;
|
15 | onExit?: () => void;
|
16 | onOpened?: () => void;
|
17 | onClosed?: () => void;
|
18 | cssModule?: CSSModule;
|
19 | wrapClassName?: string;
|
20 | modalClassName?: string;
|
21 | backdropClassName?: string;
|
22 | contentClassName?: string;
|
23 | zIndex?: number | string;
|
24 | fade?: boolean;
|
25 | backdropTransition?: FadeProps;
|
26 | modalTransition?: FadeProps;
|
27 | centered?: boolean;
|
28 | fullscreen?: boolean | 'sm' | 'md' | 'lg' | 'xl';
|
29 | external?: React.ReactNode;
|
30 | labelledBy?: string;
|
31 | unmountOnClose?: boolean;
|
32 | returnFocusAfterClose?: boolean;
|
33 | container?: string | HTMLElement | React.RefObject<HTMLElement>;
|
34 | innerRef?: React.Ref<HTMLElement>;
|
35 | trapFocus?: boolean;
|
36 | }
|
37 |
|
38 | declare class Modal extends React.Component<ModalProps> {}
|
39 | export default Modal;
|