Returns a bounding rect of an anchor (relative to the window) around which a target is positioned.
OptionalgetReturns a bounding rect of a container that constrains target positioning.
By default, the visual viewport is used as a container.
Returns a bounding rect of the element positioned around an anchor.
OptionalisIf true, anchored positioning isn't tracked.
OptionalisIf true, horizontal alignment is mirrored.
By default, RTL is derived from the document.
Called when the target element must be repositioned.
Info about the current target position around an anchor. This object is reused between invocations.
OptionalvariantsAn array of target position variants from which the most suitable is picked.
By default, a single variant is used with default settings.
Props for the useAnchorPosition hook.