UNPKG

639 BTypeScriptView Raw
1import * as React from 'react';
2export interface PortalProps {
3 /**
4 * The children to render into the `container`.
5 */
6 children?: React.ReactNode;
7 /**
8 * An HTML element or function that returns one.
9 * The `container` will have the portal children appended to it.
10 *
11 * By default, it uses the body of the top-level document object,
12 * so it's simply `document.body` most of the time.
13 */
14 container?: Element | (() => Element | null) | null;
15 /**
16 * The `children` will be under the DOM hierarchy of the parent component.
17 * @default false
18 */
19 disablePortal?: boolean;
20}
21
\No newline at end of file