Skip to content

portalContainerRef

function portalContainerRef(): RefObject<HTMLElement | null> | undefined;

Defined in: src/ui/lib/portal-container.ts:31

The current portal container ref, or undefined when none is set (Base UI then defaults to document.body). Pass the result to a Base UI *.Portal container={…} prop.

RefObject<HTMLElement | null> | undefined