ohctechv3/.svn/pristine/51/51e99ad7ecf193bccfcf465c06528f3808cdfca8.svn-base
2024-10-28 15:03:36 +05:30

24 lines
826 B
Plaintext

import * as React from 'react';
export interface PortalProps {
/**
* The children to render into the `container`.
*/
children?: React.ReactNode;
/**
* An HTML element or function that returns one.
* The `container` will have the portal children appended to it.
*
* You can also provide a callback, which is called in a React layout effect.
* This lets you set the container from a ref, and also makes server-side rendering possible.
*
* By default, it uses the body of the top-level document object,
* so it's simply `document.body` most of the time.
*/
container?: Element | (() => Element | null) | null;
/**
* The `children` will be under the DOM hierarchy of the parent component.
* @default false
*/
disablePortal?: boolean;
}