Skip to content

Variable: PortalContainerContext

const PortalContainerContext: React.Context<HTMLElement | null>

Context for providing a custom portal container. This is used when rendering components in isolated contexts like iframes or shadow DOM. Portal components (AlertDialog, ContextMenu, etc.) will use this container instead of document.body