UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

31 lines (30 loc) 852 B
import React from 'react'; import { StandardProps } from '../../util/component-types'; interface IPortalProps extends StandardProps, React.HTMLProps<HTMLDivElement> { /** The `id` of the portal element that is appended to `document.body`. */ portalId?: string; } interface IPortalState { isReady: boolean; } declare class Portal extends React.Component<IPortalProps, IPortalState, {}> { static displayName: string; static peek: { description: string; categories: string[]; }; static propTypes: { children: any; className: any; portalId: any; }; state: { isReady: boolean; }; manuallyCreatedPortal: boolean; portalElement: HTMLElement; componentDidMount(): void; componentWillUnmount(): void; render(): React.ReactNode; } export default Portal;