@onesy/ui-react
Version:
UI for React
34 lines (33 loc) • 1.11 kB
TypeScript
import React from 'react';
import { TMethod } from '@onesy/utils';
import { IBaseElement, IElementReference, IPropsAny, IRef } from '../types';
export declare type IModal = IBaseElement & {
open?: boolean;
openDefault?: boolean;
mainRef?: IRef;
backgroundRef?: IRef;
partialyOpened?: boolean | number;
minWidth?: 'xss' | 'xs' | 'sm' | 'rg' | 'lg' | 'xl' | 'xxl';
maxWidth?: 'xss' | 'xs' | 'sm' | 'rg' | 'lg' | 'xl' | 'xxl';
fullScreen?: boolean;
fullWidth?: boolean;
background?: boolean;
modalWrapper?: boolean;
modalWrapperSurface?: boolean;
portal?: boolean;
focus?: boolean;
freezeScroll?: boolean;
disableKeyboardClose?: boolean;
disableBackgroundClose?: boolean;
backgroundInvisible?: boolean;
onClose?: TMethod;
NoSurfaceProps?: IPropsAny;
SurfaceProps?: IPropsAny;
BackgroundProps?: IPropsAny;
PortalProps?: IPropsAny;
TransitionComponentProps?: IPropsAny;
BackgroundComponent?: IElementReference;
TransitionComponent?: IElementReference;
};
declare const Modal: React.FC<IModal>;
export default Modal;