UNPKG

1.11 kBTypeScriptView Raw
1import React from 'react';
2import { ModalProps as 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'> {
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}
20declare type Modal = BsPrefixRefForwardingComponent<'div', ModalProps> & {
21 Body: typeof ModalBody;
22 Header: typeof ModalHeader;
23 Title: typeof ModalTitle;
24 Footer: typeof ModalFooter;
25 Dialog: typeof ModalDialog;
26 TRANSITION_DURATION: number;
27 BACKDROP_TRANSITION_DURATION: number;
28};
29declare const Modal: Modal;
30export default Modal;