@primer/react
Version:
An implementation of GitHub's Primer Design System using React
22 lines (21 loc) • 615 B
TypeScript
import React from "react";
//#region src/Portal/Portal.d.ts
interface PortalProps {
/**
* Called when this portal is added to the DOM
*/
onMount?: () => void;
/**
* Optional. Mount this portal at the container specified
* by this name. The container must be previously registered
* with `registerPortal`.
*/
containerName?: string;
}
/**
* Creates a React Portal, placing all children in a separate physical DOM root node.
* @see https://reactjs.org/docs/portals.html
*/
declare const Portal: React.FC<React.PropsWithChildren<PortalProps>>;
//#endregion
export { Portal, PortalProps };