Skip to Content
ComponentsTooltip

Tooltip

Tooltip shows a Windows 98 info popup for hover and focus targets.

Props

PropTypeDefaultDescription
textstringrequiredTooltip text.
delaynumber400Delay before showing in milliseconds.
side'top' | 'bottom' | 'left' | 'right''top'Preferred placement, with viewport flipping.
classNamestring-Popup classes.
childrenReactNoderequiredTrigger content.

Examples

Hover and focus hints

Viewport edge detection

ARIA

Tooltip adds aria-describedby while visible and renders the popup with role="tooltip".

Keyboard

Focusing the trigger shows the tooltip after the configured delay. Escape dismisses the visible tooltip.

SSR

Tooltip portals after mount. Keep the trigger markup stable across server and client.

Last updated on