Measured entry
shadcn-tooltip
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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 31.1 KB (95.7 KB build, 64.6 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | radix-ui |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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/uiAlternatives
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.
- hextaui-tooltipminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 48.6KB
- Bare
- pass
- Prov
- NO
- shadcn-hover-cardunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 43.4KB
- Bare
- fail
- Prov
- NO
- neobrutalism-hover-cardbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 43.6KB
- Bare
- fail
- Prov
- NO
- neobrutalism-ntooltipbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 44.6KB
- Bare
- fail
- Prov
- NO
- neobrutalism-tooltipbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 44.6KB
- Bare
- fail
- Prov
- NO
- originui-comp-99minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 46.7KB
- Bare
- fail
- Prov
- NO