@primer/react
Version:
An implementation of GitHub's Primer Design System using React
10 lines • 471 B
TypeScript
//#region src/Portal/portalRoot.d.ts
/**
* Register a container to serve as a portal root.
* @param root The element that will be the root for portals created in this container
* @param name The name of the container, to be used with the `containerName` prop on the Portal Component.
* If name is not specified, registers the default portal root.
*/
declare function registerPortalRoot(root: Element, name?: string): void;
//#endregion
export { registerPortalRoot };