Measured entry
shadcn-empty
A copy-in React primitive for composing empty states from separate container, header, media, title, description, and content pieces. It ships as TSX styled with Tailwind utilities and shadcn theme tokens, using class-variance-authority plus the project’s cn helper backed by clsx and tailwind-merge.



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 | flagged at 375 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 29.8 KB (95.3 KB build, 65.5 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 679ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-6a8b7dbba9e0/src/cut/components/ui/empty.tsx".
Verdict
A dependable, composable empty-state shell that builds and mounts cleanly without a provider. The primitive is flexible, but its semantics and actions are entirely the consumer’s responsibility, and the supplied fixed-width demo needs a responsive width adjustment.
Use it if
- You want a flexible empty-state shell that accepts your own icon, message, and actions.
- Your app already uses Tailwind and shadcn-style theme tokens.
- You prefer copy-in primitives that can be edited locally over a packaged widget.
Skip it if
- You need a dependency-free component or do not want Tailwind utility classes in shared UI.
- You need built-in state logic, loading behavior, or action handling rather than a layout primitive.
- You require semantic heading and region roles without adding them at the call site.
- You plan to keep the supplied fixed-width demo unchanged on narrow screens, where it overflows.
Install
| Declared dependencies | clsx, tailwind-merge |
|---|---|
| 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 Tailwind, class-variance-authority, clsx, and tailwind-merge; provide a cn utility; and define the muted, foreground, primary, and primary-foreground theme tokens used by the classes. Replace the source alias with a local import path.
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 card pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- tailark-veil-content-1minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.6KB
- Bare
- pass
- Prov
- NO
- tailark-veil-content-2minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 17.6KB
- Bare
- pass
- Prov
- NO
- tailark-mist-content-3minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 24.1KB
- Bare
- pass
- Prov
- NO
- neobrutalism-cardbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 29.6KB
- Bare
- pass
- Prov
- NO
- neobrutalism-ncardbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 29.6KB
- Bare
- pass
- Prov
- NO
- reui-icon-stackminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 30.1KB
- Bare
- pass
- Prov
- NO