Tooltip

Small floating labels that appear on hover or focus to give a little extra context about an element.

Install

Examples

Placement

Hover or focus a trigger. placement is top (default), bottom, left, or right.

Top Bottom Left Right

Triggers

Works on any focusable trigger. trigger="click" toggles on click instead of hover.

Hover or focus tokens Click me

Options

without-arrow hides the arrow; disabled keeps the tip from ever opening.

No arrow Disabled tooltip

Guidelines

Usage

short, text-only hints for an icon or control. Keep content text-only — never put interactive elements inside. The tip is position:fixed so it escapes overflow:hidden ancestors and flips on collision.

Do

  • Keep content to a short, plain-text phrase — a label or one-line hint.
  • Put tooltips on focusable triggers so keyboard users get them too.
  • Use one to name an icon-only control (e.g. a Button Icon).

Don’t

  • Don’t put links, buttons, or form fields inside — the tip is not part of the focus order.
  • Don’t hide essential information in a tooltip; it must be discoverable without one.
  • Don’t tooltip disabled elements — they don’t receive hover or focus.

Accessibility

Properties

Related