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