Measured entry

shadcn-table

tableunclassified

A source-distributed React table primitive that wraps semantic table elements with a horizontally scrollable container. It has no package dependencies beyond React, but its styling expects Tailwind utility classes, shadcn theme tokens, and the cn helper imported through the project alias.

Specimen
Harness screenshot of shadcn-table at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-table at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-table 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-table
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.08s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/table.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A dependable presentational base for conventional tables, with semantic markup and sensible narrow-screen overflow. It needs a shadcn-style setup before it will build or mount in a bare project, and it is intentionally not a full data-grid solution.

Use it if

  • You want semantic table building blocks that remain easy to compose and customize in JSX.
  • Your app already uses shadcn conventions, Tailwind utilities, and the cn helper.
  • You need wide tables to scroll inside their container on narrow screens.

Skip it if

  • You need sorting, filtering, pagination, virtualization, or column resizing built in.
  • Your project does not use Tailwind and you do not want to translate the utility classes.
  • You want a packaged data grid with its own state and interaction model.

Install

Installation record for shadcn-table
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

For a non-shadcn project, add the cn class-merging helper at the expected utils alias, configure that alias, and provide Tailwind utilities plus the muted and foreground theme tokens referenced by the component. Otherwise, replace the helper import and utility classes with local equivalents.

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