GoScrobble/web/node_modules/react-bootstrap/cjs/Modal.d.ts

31 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import React from 'react';
import { ModalProps as BaseModalProps } from 'react-overlays/Modal';
import ModalBody from './ModalBody';
import ModalDialog from './ModalDialog';
import ModalFooter from './ModalFooter';
import ModalHeader from './ModalHeader';
import ModalTitle from './ModalTitle';
import { BsPrefixRefForwardingComponent } from './helpers';
export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdropTransition'> {
size?: 'sm' | 'lg' | 'xl';
bsPrefix?: string;
centered?: boolean;
backdropClassName?: string;
animation?: boolean;
dialogClassName?: string;
contentClassName?: string;
dialogAs?: React.ElementType;
scrollable?: boolean;
}
declare type Modal = BsPrefixRefForwardingComponent<'div', ModalProps> & {
Body: typeof ModalBody;
Header: typeof ModalHeader;
Title: typeof ModalTitle;
Footer: typeof ModalFooter;
Dialog: typeof ModalDialog;
TRANSITION_DURATION: number;
BACKDROP_TRANSITION_DURATION: number;
};
declare const Modal: Modal;
export default Modal;