Components / component

Pop Tooltip

v1.0.0 · premium

A tooltip that pops from its arrow on hover or focus, stays open while hovered, and closes with Escape.

Pop Tooltip demo

Implementation

A tooltip that pops from its arrow on hover or focus, stays open while hovered, and closes with Escape.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function TooltipPop({ children, text, placement = 'top', delay = 150, ink, paper, className }: {
  /** One focusable element, such as a button. */
  children: ReactElement<{ 'aria-describedby'?: string }>;

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A tooltip that pops from its arrow on hover or focus, stays open while hovered, and closes with Escape.

Frequently asked questions

Does the tooltip open on touch screens?

No. Tooltips belong to pointer and keyboard users, so do not put essential information in one. Put it in visible text instead.

How is the tooltip dismissed without moving the pointer?

Press Escape. The tip also stays open while the pointer is on it, as WCAG 1.4.13 requires.