Tooltip

A short hint shown when an element is hovered or focused.
Stable
Web
iOS
Android
@advui/core
Source

Toolbar

Installation

pnpm
pnpm add @advui/core
npm
npm install @advui/core

Usage

import { IconButton, Tooltip } from '@advui/core'
import { TrashIcon } from '@advui/icons'

<Tooltip content="Delete file">
  <IconButton aria-label="Delete file" icon={<TrashIcon />} />
</Tooltip>

API reference

Tooltip

PropTypeDefaultDescription
content requiredReactNode—The hint. Keep it short.
side'top' | 'right' | 'bottom' | 'left''top'Preferred placement (flips to fit).
delaynumber300Hover delay in ms.
disabledbooleanfalseRender only the trigger.
openboolean—Visibility, when you control it.
defaultOpenbooleanfalseStarting `open` when uncontrolled.
onOpenChange(open: boolean) => void—Called with the new `open`.

Accessibility

  • Opens on hover and keyboard focus; Escape dismisses it (WCAG 1.4.13).
  • The trigger is described by the tooltip via aria-describedby while visible.
  • Tooltips are supplementary: essential info must be visible elsewhere, and icon buttons still need aria-label.
Keyboard interactions
KeyAction
Tab (focus)Shows the tooltip.
EscapeHides the tooltip.

Platform notes

Web
Positioned with Floating UI; flips and shifts to stay on screen.
iOS
Not rendered — touch has no hover. Only the trigger is shown.
Android
Not rendered — use a visible label or long-press hint instead.
Since v0.1.0Last updated Nov 2, 2026Edit this page on GitHub