Skip to content

UsePlacementResult

UsePlacementResult = object

Result returned by the usePlacement hook.

exposureBasis: ExposureBasis | null

How the placement’s visual root was exposed, or null before it enters the viewport (plan 144 TASK-9). 'render_fallback' when IntersectionObserver is unavailable (AC-10). Only meaningful once UsePlacementResult.exposureRef is attached.


exposureRef: (element) => void

Ref callback to attach to the placement’s true visual root (plan 144 TASK-9). RevTurbine observes when that element enters the viewport for viewport-qualified exposure; when IntersectionObserver is unavailable it falls back to render (exposure_basis: 'render_fallback', AC-10). Attaching it is optional and never adds a wrapper element (REQ-18/REQ-19).

Element | null

void