Skip to Content

tooltip

ui

A popup that displays information related to an element when it receives keyboard focus or the mouse hovers over it.

Use cases

  • Icon button labels
  • Abbreviated text expansion
  • Feature hints
  • Keyboard shortcut display

Features

  • Configurable delay
  • Portal rendering
  • Keyboard accessible (focus triggers)
  • Provider for shared configuration

Preview

Interactive preview with light/dark mode toggle. Switch to Code tab to view the full source.

Installation

npx shadcn@latest add https://registry.mukoko.com/api/v1/ui/tooltip

Dependencies

radix-ui

API

Fetch this component's metadata and source code from the registry API.

GET/api/v1/ui/tooltip

Source

components/ui/tooltip.tsx