IPortalContainerProps

Options that can be passed to a portal container component

Definition

interface IPortalContainerProps {
    /**
     * create a backdrop if true
     */
    hasBackdrop?: boolean,

    /**
     * callback function to click on backdrop
     */
    onClickBackdrop?: (e?: React.MouseEvent<HTMLDivElement>) => void,

    /**
     * additional styles to backdrop
     */
    backdropStyles?: any
    /**
     * disabled the scrolling of main content block if true
     * default value is true
     * DEPRECATED
     */
    disableScroll?: boolean,
    className?: string;
    children?: React.ReactNode;
}

Usage

Last updated