1 | import PropTypes from 'prop-types';
|
2 | import React from 'react';
|
3 | import { DOMContainer } from './useWaitForDOMRef';
|
4 | export interface PortalProps {
|
5 | children: React.ReactElement;
|
6 | container: DOMContainer;
|
7 | onRendered?: (element: any) => void;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 | declare const Portal: {
|
13 | ({ container, children, onRendered }: PortalProps): JSX.Element | null;
|
14 | displayName: string;
|
15 | propTypes: {
|
16 | |
17 |
|
18 |
|
19 |
|
20 | container: PropTypes.Requireable<any>;
|
21 | onRendered: PropTypes.Requireable<(...args: any[]) => any>;
|
22 | };
|
23 | };
|
24 | export default Portal;
|