import * as React from "react"; import ReactModal from "react-modal"; export interface ModalProps extends Omit { background?: string; onRequestClose?: () => void; className?: string; overlayClassName?: string; /** * Whether content is allowed to stick out of the modal, instead of being * clipped at its edges. * * A popover anchored to something inside the modal — a date picker, a * dropdown — is positioned relative to what it belongs to, so it cannot be * lifted out with z-index. Clipping is what cuts it off, and this turns the * clipping off so it can be drawn in front of the modal, at whatever size it * needs. * * The modal then cannot scroll its own content, so only use it for a modal * whose content fits. It is also aligned to the top of the screen rather * than centred, to leave room for whatever sticks out below it. * * Has no effect while the modal fills the screen, as it does on a phone. * There is no outside to stick out into, and a fullscreen modal needs to * keep its own scrolling to stay reachable. * * @default false */ allowContentOverflow?: boolean; } export declare const Modal: React.FC;