Skip to Content
glob.ui home
Components

Tooltip

A short description that appears on hover or keyboard focus. It stays open while the pointer is over it.

Client componentUses state or handlers, so it starts with "use client".
import { Tooltip } from "@glob-ui/tooltip"

Preview

Examples

Placement

placement takes top, bottom, left or right, with -start and -end variants. arrow adds a pointer.

API

Props are generated from the TypeScript types in the package source.

TooltipProps

Prop

Type

Accessibility

Key or actionBehaviour
HoverOpens after delayDuration (500 ms by default). Touch input does not open it.
Keyboard focusOpens at once, on focus-visible only.
EscapeCloses it.
Pointer moves onto the tooltipStays open. It closes closeDelay (150 ms) after the pointer leaves both the trigger and the tooltip.

ARIA. The trigger gets aria-describedby pointing at the tooltip, which has role="tooltip". Put the essential information in the visible text, not only in the tooltip, because touch users may not see it.

On this page