Skip to content
ghostui

Preview

What should we test next?

Start with the onboarding flow. Five usability sessions can show where new users lose context.

Design guidance

Use a brief, noninteractive hint for hover or focus. Put controls and longer content in Popover. Icon-only triggers need their own accessible name. Wrap a disabled control in a focusable element when its tooltip explains why it is unavailable.

Installation

Install

Basic usage

Structures

Examples

Basic hint

Use a short label for an icon action.

Keyboard shortcut

Compose Kbd with the hint when the application has that shortcut.

Multiline content

Keep guidance short; longer hints wrap within the available width.

Top

Choose the preferred side; Base UI can adjust it to avoid a collision.

Right

The arrow follows the resolved side.

Bottom

Use the same popup and arrow on each side.

Left

Keep the trigger accessible by keyboard.

Disabled control

A focusable wrapper lets keyboard users read the reason.

API reference

Advanced handles, detached triggers and additional parts follow Base UI Tooltip.