Fluid Tooltip Component
A grouped tooltip system that preserves spatial orientation while people scan related icon controls.
Features
- Uses a deliberate first pointer delay, then opens sibling tooltips immediately.
- Moves new labels eight pixels from left or right in horizontal groups and from top or bottom in vertical groups.
- Keeps the tooltip surface continuous while its anchor and content change.
- Places horizontal tooltips above their triggers and vertical tooltips to the right by default, with collision-aware flipping.
- Shows keyboard tooltips immediately without directional travel.
- Removes travel for reduced-motion preferences and leaves coarse-pointer controls usable.
- Built on Base UI for tooltip semantics, positioning, collision handling, and accessible descriptions.
Playground
Adjust the group delay and orientation, then move between the controls.
Installation
Usage
Props
| Property | Type | Default | Description |
|---|---|---|---|
children | ReactNode | required | Related tooltip roots rendered inside the group. |
orientation | FluidTooltipOrientation | "auto" | Axis used to calculate directional content entry. |
openDelay | number | 350 | Delay before the first pointer tooltip opens, in milliseconds. |
closeDelay | number | 100 | Grace period before a pointer tooltip closes, in milliseconds. |
disabled | boolean | false | Disables tooltip behavior for every trigger in the group. |
className | string | undefined | Additional CSS classes for the positioned tooltip surface. |