UNPKG

1.14 kBTypeScriptView Raw
1import React from 'react';
2import { BaseModalProps } from 'react-overlays/Modal';
3import ModalBody from './ModalBody';
4import ModalDialog from './ModalDialog';
5import ModalFooter from './ModalFooter';
6import ModalHeader from './ModalHeader';
7import ModalTitle from './ModalTitle';
8import { BsPrefixRefForwardingComponent } from './helpers';
9export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdropTransition' | 'children'> {
10 size?: 'sm' | 'lg' | 'xl';
11 bsPrefix?: string;
12 centered?: boolean;
13 backdropClassName?: string;
14 animation?: boolean;
15 dialogClassName?: string;
16 contentClassName?: string;
17 dialogAs?: React.ElementType;
18 scrollable?: boolean;
19 [other: string]: any;
20}
21declare type Modal = BsPrefixRefForwardingComponent<'div', ModalProps> & {
22 Body: typeof ModalBody;
23 Header: typeof ModalHeader;
24 Title: typeof ModalTitle;
25 Footer: typeof ModalFooter;
26 Dialog: typeof ModalDialog;
27 TRANSITION_DURATION: number;
28 BACKDROP_TRANSITION_DURATION: number;
29};
30declare const Modal: Modal;
31export default Modal;