Browse the docs
Actions / Tooltip

Tooltip

A speech bubble that pops out of whatever it explains. Opens on hover and keyboard focus.

Client componentWCAG AASince v0.1
Priority sets who gets paged first.Sends your live location for 30 minutes.

Change every prop live in the playground.

Props

PropTypeDefaultWhat it does
children requiredReactElement<TriggerProps, string | JSXElementConstructor<any>>—The one element it explains. It must be focusable (a button, a link, or tabIndex={0}).
content requiredReactNode—What the bubble says. Keep it to a sentence.
classNamestringnone—
openbooleanfalseKeep it open (for docs or onboarding).
side"top" | "right" | "bottom"top (centered above); bottom is for triggers near the top edge, like a headerWhere the bubble points from.

Use it well

DoExplain something short that people can do without: a sentence, at most.
Don'tPut the only copy of important information in a tooltip. Touch screens can't hover.

Accessibility

  • role="tooltip", linked with aria-describedby.
  • Opens on hover and keyboard focus; Escape closes it without moving focus.
  • The trigger must be focusable.
Five stamps!

All aboard.

You took the whole tour. Here's Holo Pip, a foil sticker for riders who finish. It's in your playground tray now, for good.