Measured entry

shadcn-item

cardunclassified

A composable React item-row family for media, text, actions, headers, footers, groups, and separators. It ships as shadcn registry source copied into your app, styled with Tailwind classes and variants, and relies on Radix Slot, the shadcn Separator, class-variance-authority, and a cn utility backed by clsx and tailwind-merge.

Specimen
Harness screenshot of shadcn-item at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of shadcn-item at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-item 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-item
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal32.7 KB (98.2 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 751ms
error during build:
[vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-837c88b3dcec/src/cut/components/ui/item.tsx".

Verdict

A practical set of flexible row primitives that builds and mounts cleanly, but it is not ready to copy unchanged. Fix the group's list semantics and replace the demo's fixed width for narrow layouts. Best suited to teams already comfortable maintaining shadcn source.

Use it if

  • You need consistent rows for settings, project lists, notifications, or compact resource cards.
  • Your team wants source-owned primitives that can render as links or custom child elements.
  • Your interface already uses Tailwind and shadcn design tokens.

Skip it if

  • You need an accessible list without adding list-item semantics to each row.
  • You want a packaged component with styles isolated from your Tailwind theme.
  • You plan to keep the demo's fixed width on narrow screens, where it overflows.
  • You need richer card behavior such as selection, disclosure, or built-in loading states.

Install

Installation record for shadcn-item
Declared dependenciesradix-ui, clsx, tailwind-merge
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 React, Tailwind, radix-ui, class-variance-authority, clsx, and tailwind-merge. Provide the cn helper and Separator component, configure the import aliases, and define the muted, accent, border, ring, and foreground theme tokens used by the classes.

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

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.