UNPKG

1.38 kBTypeScriptView Raw
1import * as React from 'react';
2import { BaseModalProps } from '@restart/ui/Modal';
3import { BsPrefixRefForwardingComponent } from './helpers';
4export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdropTransition' | 'children'> {
5 size?: 'sm' | 'lg' | 'xl';
6 fullscreen?: true | string | 'sm-down' | 'md-down' | 'lg-down' | 'xl-down' | 'xxl-down';
7 bsPrefix?: string;
8 centered?: boolean;
9 backdropClassName?: string;
10 animation?: boolean;
11 dialogClassName?: string;
12 contentClassName?: string;
13 dialogAs?: React.ElementType;
14 scrollable?: boolean;
15 [other: string]: any;
16}
17declare const _default: BsPrefixRefForwardingComponent<"div", ModalProps> & {
18 Body: BsPrefixRefForwardingComponent<"div", import("./ModalBody").ModalBodyProps>;
19 Header: React.ForwardRefExoticComponent<import("./ModalHeader").ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
20 Title: BsPrefixRefForwardingComponent<"span", import("./ModalTitle").ModalTitleProps>;
21 Footer: BsPrefixRefForwardingComponent<"div", import("./ModalFooter").ModalFooterProps>;
22 Dialog: React.ForwardRefExoticComponent<import("./ModalDialog").ModalDialogProps & React.RefAttributes<HTMLDivElement>>;
23 TRANSITION_DURATION: number;
24 BACKDROP_TRANSITION_DURATION: number;
25};
26export default _default;