React Tooltip & Popover

Tooltip shows a short phrase on hover and keyboard focus (with an open delay so it never flickers); Popover opens on click for rich content — the demo's spec-preview card is the pattern for part numbers in catalogs and tables. Both close on Escape, sit on the solid popover surface, and position on any side without a portal.

Tj = 105 °C

Installation

npx shadcn@latest add tooltip.json

Usage

Loading...

Props

Tooltip

PropTypeDefaultDescription
contentReact.ReactNodeTooltip body (keep it short)
side'top' \'bottom' \'left' \
delaynumber300Open delay in ms

Popover

PropTypeDefaultDescription
triggerReact.ReactNodeToggle element (wrapped in a button)
side'top' \'bottom' \'left' \
panelClassNamestring'w-72'Panel sizing utilities