UNPKG

@coreui/react

Version:

UI Components Library for React.js

19 lines (18 loc) 550 B
import { FC, ReactNode } from 'react'; export interface CConditionalPortalProps { /** * @ignore */ children: ReactNode; /** * An HTML element or function that returns a single element, with `document.body` as the default. * * @since 4.11.0 */ container?: DocumentFragment | Element | (() => DocumentFragment | Element | null) | null; /** * Render some children into a different part of the DOM */ portal: boolean; } export declare const CConditionalPortal: FC<CConditionalPortalProps>;