Measured entry

shadcn-card

cardunclassified

A composable React card primitive with header, title, description, action, content, and footer slots. It ships as copied TypeScript source rather than a package, and relies on React, a local cn class-merging helper, Tailwind-style utilities, and configured card color tokens.

Specimen
Harness screenshot of shadcn-card at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-card at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-card 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-card
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal12.0 KB (76.6 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.12s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/card.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A sensible low-level card for an existing shadcn-style codebase. It builds and mounts in the prepared harness, but the bare project cannot resolve its local utility import, so it needs a shadcn-style setup before it is usable.

Use it if

  • Your app already follows shadcn conventions and needs a consistent container primitive.
  • You want separate structural slots that remain easy to reorder, omit, or style.
  • You need a neutral card base for dashboards, settings, pricing, or summary content.

Skip it if

  • You need a standalone component that works without local utility and theme setup.
  • You require semantic heading elements by default, since the title slot renders a div.
  • You want a card with built-in interaction, selection, loading, or disclosure behavior.

Install

Installation record for shadcn-card
Declared dependenciesnone declared
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 the cn helper and its import alias, configure a Tailwind-compatible utility pipeline, define the card and muted theme tokens, and ensure the container-query and data-attribute variants used by the classes are supported.

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 card pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.