Tooltip

A short label for something already on screen. Text only, on purpose: a tooltip is unreachable on touch and skipped by some screen reader modes, so it can never be the only place something is said.

Reach for it

A short label for a control whose meaning is not obvious, usually an icon.

Not for

Anything the user must read to act. A tooltip cannot be reached by touch and disappears.

Naming a control

Good for the name of an icon button, or a unit beside a number. Anything the user has to read to finish a task belongs in a Field hint or beside the control, where everyone can reach it.

API reference

TooltipProvider

Also takes the props of Base UI Tooltip Provider.

Tooltip

PropTypeDefaultDescription
content*string-
children*ReactElement-
data-testidstring-Names the element for a test. Never rendered, never announced.
side'top' | 'right' | 'bottom' | 'left'-
isDisabledboolean-Keeps the tooltip shut without removing it from the tree. For a caller that only knows at run time whether there is anything to say. Unmounting the tooltip instead would remount its child, and a child that is measured to decide the answer would then measure a different element and never settle. Base UI's own `disabled`, so the open state stays uncontrolled and never switches between the two.