nice-ui
Version:
React design system, components, and utilities
14 lines (13 loc) • 373 B
TypeScript
import * as React from 'react';
export interface PortalProps {
/**
* The children to render into the portal.
*/
children: React.ReactNode;
/**
* The parent element to render the portal into. If not provided, the portal
* will be rendered into the body.
*/
parent?: HTMLElement;
}
export declare const Portal: React.FC<PortalProps>;