Skip to main content

Tooltip

A short label shown on hover AND keyboard focus.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

  • Use it when Reveal a short, supplementary hint on hover/focus.
  • Reach for something else when Essential information or actions — they must be reachable without hovering.

Accessibility​

Appears on hover and keyboard focus; content is linked via aria-describedby. Never put essential-only actions inside a tooltip.

Install and import​

npx shadcn@latest add @prism/tooltip
import { Tooltip } from '@/components/prism/Tooltip';

In a no-build prototype, read it from the bundle instead: const { Tooltip } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
contentReact.ReactNodeYes
childrenReact.ReactNodeYesOne focusable child (a button, link, IconButton…). Rendered as-is, so it can come from a Server Component; the tip describes the first focusable element inside.