Floating UI

A JavaScript library, and the general technique, for positioning a floating element such as a tooltip next to a reference element.

In more detail

Floating UI computes coordinates from the reference element's bounding box and applies middleware such as flip (move to the opposite side when there is no room) and shift (slide along the edge to stay visible). It also positions arrow pointers.

Related terms

Taught in

References