Skip to main content
v7

Tooltip

Short contextual hints on hover, focus or click. The arrow that points at the trigger is optional.

Package@g4rcez/componentsSectionFloating Elements

Examples

Triggers

A tooltip opens on hover and on keyboard focus. hover={false} and focus={false} turn either off, popover makes a click toggle it, and enabled={false} switches it off entirely.

Optional arrow

A plain tooltip has no arrow. Pass arrow to draw a pointer at the trigger, or arrow={false} to remove the one a popover has by default.

Placement

placement fixes the side. Without it the tooltip opens on top and flips to the opposite side when it would leave the viewport.

Follow the cursor

followCursor keeps the tooltip next to the pointer while it moves over the trigger.

Controlled

Pass open and onChange to own the state, for example to show a tooltip after an action.

Icon hints

asChild uses the title element as the trigger, with no wrapper. closeOnClick closes the tooltip on click until the pointer leaves. touch={false} ignores touch pointers. delay sets the hover open delay in ms.

When to use Tooltip

Use when

You need the documented Tooltip interaction or presentation in a product workflow.

Avoid when

A native HTML element already provides the Tooltip behavior you need.

Accessibility

Keep the Tooltip labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.