Variable TooltipPortalContainerProviderConst
TooltipPortalContainerProvider: (
__namedParameters: {
children: ReactNode;
container: null | HTMLElement;
},
) => Element = PortalContainerProvider
Type declaration
- (
__namedParameters: {
children: ReactNode;
container: null | HTMLElement;
},
): Element Parameters
- __namedParameters: { children: ReactNode; container: null | HTMLElement }
Returns Element
Keeps descendant TooltipContent inside
containerinstead ofdocument.body. Use it when a tooltip sits inside an ancestor that stacks above the tooltip layer: content portalled to the body becomes a positioned sibling of that ancestor in the root stacking context, so the opaque first-run wizard gate atZ_INDEX_FIRST_RUN(700) hides tooltips atZ_INDEX_TOOLTIP(550) entirely.Contract:
nullforcontaineruntil the ancestor element exists (the initial state of a ref-callbackuseState) to keep Radix'sdocument.bodydefault; once it exists, later opens portal into it.PopoverPortalContainerProviderinpopover.tsxdoes the same for popovers.