Tooltip

Last updated: October 14, 2026

Accessible tooltip with configurable delay and Motion fade/scale.

Installation

npx smoothui-cli add tooltip

Features

  • Hover/focus tooltip with configurable delay (default 400ms)
  • Spring fade/scale entrance via Motion
  • Controlled or uncontrolled open state
  • Compound parts (TooltipProvider, TooltipTrigger, TooltipContent) for shared delay grouping
  • Base UI by default; Radix twin available via style

Accessibility

Keyboard Interactions

KeyDescription
TabFocuses the trigger and shows the tooltip (after delay)
EscapeDismisses the tooltip

ARIA Attributes

AttributeElementPurpose
role="tooltip"ContentIdentifies the element as a tooltip
aria-describedbyTriggerReferences the tooltip content for assistive tech

Reduced Motion

This component respects prefers-reduced-motion via useReducedMotion from Motion. When reduced motion is preferred, fade and scale animations are disabled instantly.

Props

TooltipProps

Powered by

motion.dev
base-ui