Measured entry

shadcn-popover

popoverunclassified

A client-side React popover wrapper built on Radix UI primitives, with trigger, anchored portal content, header, title, and description helpers. It ships as a copy-in TypeScript registry file and depends on radix-ui, the shadcn cn utility, Tailwind utility classes, theme tokens, and animation utilities.

Specimen
Harness screenshot of shadcn-popover at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-popover at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-popover 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-popover
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal49.6 KB (115.0 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

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

Verdict

A dependable choice inside an existing shadcn codebase, with clean Radix behavior and no observed runtime or accessibility issues. It needs a shadcn-style setup before it will build or mount in a bare React project, and the title helper deserves a semantic review.

Use it if

  • You need accessible anchored content for settings, filters, or compact contextual controls.
  • Your app already uses shadcn conventions and Radix UI primitives.
  • You want portal rendering, placement controls, and state-driven animation classes in a small copy-in wrapper.

Skip it if

  • Your project does not use Tailwind or shadcn theme tokens and you do not want to translate its styling.
  • You need a modal interaction that traps attention rather than lightweight contextual content.
  • You want a standalone package with no local utility import or copied source to maintain.
  • You require the provided title helper to render a semantic heading without adapting the source.

Install

Installation record for shadcn-popover
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 a cn class-merging helper or replace that import, configure the path alias, and supply the Tailwind theme tokens and animation utilities referenced by the classes. Adjust the styles directly if Tailwind is not part of the stack.

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-14

Alternatives

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