@slashid/react
Version:
React SDK for the /id platform
13 lines • 388 B
TypeScript
/**
* Companion utility for <Teleport />
*
* Searches the DOM for a teleport target element
* with id [teleportId]. If none is found, creates
* one at the root of the DOM.
*
* @param teleportKey the key of teleport target
*
* @returns the portal element
*/
export declare const findOrCreateTeleportTarget: (teleportKey: string) => HTMLElement;
//# sourceMappingURL=util.d.ts.map