@ariakit/react-core
Version:
Ariakit React core
18 lines (17 loc) • 434 B
TypeScript
/**
* Stores the element that will contain the portal. By default, it will be the
* body of the document.
* @example
* ```jsx
* const container = document.getElementById("container");
*
* function App() {
* return (
* <PortalContext.Provider value={container}>
* <Portal />
* </PortalContext.Provider>
* );
* }
* ```
*/
export declare const PortalContext: import("react").Context<HTMLElement | null>;