Skip to Content
Liquid Glass UI
Components

Tooltip

Floating macOS 27 Liquid Glass tooltip pill with keyboard shortcut badge support, four-side anchoring, touch long-press adaptation, and glass={false} opaque mode.

Built on @base-ui/react/tooltip, presenting macOS 27's minimal floating Liquid Glass capsule (arrowless by default, with optional showArrow) powered by <LiquidSurfaceBackdrop tone="menu" /> synced to global --liquid-glass-tint.

Toolbar Shortcut Tooltip

Hover or focus toolbar buttons on desktop (long-press on touch devices) to reveal the Liquid Glass tooltip with built-in <Kbd> spacing:

apple-liquid-ui/preview/tooltip-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

# Install via the configured @apple-liquid namespace (includes liquid-surface and liquid-glass)
npx shadcn@latest add @apple-liquid/tooltip

Placements

Supports side="top" | "bottom" | "left" | "right" and align, flipping automatically near viewport edges:

apple-liquid-ui/preview/tooltip-placements
MacBook · 16:10

Directional Arrow

Arrowless by default to match macOS 27; enable showArrow when pointing to a specific anchor:

apple-liquid-ui/preview/tooltip-shortcut
MacBook · 16:10

Pointer vs. Touch Interaction

Because touch devices have no hover state, TooltipTrigger adapts by pointer type (finger/stylus, regardless of viewport width):

Input TypeShowHide
Mouse / Trackpad (macOS 27)Hover or keyboard focus after a short delayMove pointer away or press Esc
Touch / Stylus (iOS 27)Long-press (~0.45s)Auto-hides ~1.5s after release, or tap elsewhere
  • Tapping on touch devices invokes the button's primary action immediately without flashing a tooltip, matching iOS toolbar conventions.
  • Long-pressing suppresses the trailing click and native callout menu.
  • Always provide an aria-label on icon-only buttons since tooltips are supplementary.

Props API

TooltipContent

PropTypeDefaultDescription
side'top' | 'bottom' | 'left' | 'right''top'Tooltip placement relative to trigger
sideOffsetnumber7Distance in px from trigger
glassbooleantrueLiquid Glass material reacting to glass tint; false renders a 100% opaque surface
showArrowbooleanfalseShow directional arrow

On this page