Components / Base / Tooltip

B10 · Base

Tooltip

A description that appears after a 220 ms dwell, or at once on keyboard focus.

When to use

  • A control’s name is clear and a second sentence helps.
  • The sentence is short.

When not to use

  • The text is required to use the control. Put it on the page.
  • The text is an error.

Usage

<button type="button" aria-describedby="tip-archive">Archive</button>
<span id="tip-archive" role="tooltip" hidden>Removes the row from this example.</span>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
aria-describedbyid—Associates the button with the tooltip.
role=tooltipattribute—On the description.
dwell220 ms220 msPointer delay. Focus shows it at once.

Keyboard

KeyAction
TabFocus shows the tooltip.
EscapeIs not required. Blur hides it.

Accessibility

Motion

Pattern origin

Base hint. Dwell matches the hover-intent timing.

Related

Hover intentButton