Measured entry

shadcn-tooltip

tooltipunclassified

A client-side React tooltip wrapper built from Radix Tooltip primitives. It ships as copy-in source with provider, root, trigger, portalled content, and arrow exports, and relies on radix-ui plus the shadcn cn helper, theme tokens, and utility classes for styling and motion.

Specimen
Harness screenshot of shadcn-tooltip at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-tooltip at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-tooltip at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for shadcn-tooltip
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal31.1 KB (95.7 KB build, 64.6 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1.21s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/tooltip.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A sensible pick inside an existing shadcn codebase: the Radix foundation is sound and the wrapper stays easy to customize. It does not mount bare and needs a shadcn-style setup, so adoption outside that ecosystem requires deliberate plumbing.

Use it if

  • You already use shadcn conventions and want a tooltip that fits the same component and theme structure.
  • You need accessible hover or focus hints with portal-based positioning and configurable Radix behavior.
  • You want source-owned markup and classes that your team can adjust directly.

Skip it if

  • Your project does not use Tailwind utilities or shadcn theme tokens and you do not want to recreate the styling layer.
  • You need rich interactive popover content rather than a short explanatory label.
  • You want a package component that works without copying source or maintaining local utility conventions.

Install

Installation record for shadcn-tooltip
Declared dependenciesradix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add radix-ui, provide the cn class-merging helper and its import alias, configure the referenced Tailwind utilities and animation variants, define the foreground and background theme tokens, and ensure client components are supported. Wrap tooltip usage in TooltipProvider.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

github.com/shadcn-ui/ui
License
MIT
Record published
2026-08-12

Alternatives

Other published entries for the tooltip pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.