Positioning & data
useFloatingPosition
The positioning engine behind Popover, Menu and Tooltip. Use it to build your own anchored panels.
The positioning engine behind Popover, Menu and Tooltip. It computes positionerStyle (absolute top and left, plus visibility) for a reference and a floating element. It flips and shifts to stay on screen, and tracks changes with autoUpdate while active is true. Use it to build an anchored surface that no overlay component fits.
Install
import { useFloatingPosition } from 'vael-ui'