UNPKG

reblend-ui

Version:

Utilities for creating robust overlay components

23 lines (22 loc) 644 B
import * as Reblend from 'reblendjs'; import { DOMContainer } from './useWaitForDOMRef'; export interface PortalProps { children: Reblend.ReactElement; /** * A DOM element, Ref to an element, or function that returns either. The `container` will have the Portal children * appended to it. */ container: DOMContainer; /** * Callback that is triggered when the portal content is rendered. */ onRendered?: (element: any) => void; } /** * @public */ declare const Portal: { ({ container, children, onRendered }: PortalProps): JSX.Element | null; displayName: string; }; export default Portal;