Data Table

@sushindustries/ui

The same table with TanStack Table under it: sorting, filtering and paging that somebody else has already tested.

7 min read
View as MarkdownEdit on GitHub

One paragraph on what this does and when to reach for it. This is the first thing on the component's page and the line that goes into llms.txt, so it should survive being read on its own.

Viewport width
Phone22remthe floor, the narrowest this promises to work at
tanstacktanstack add https://adamjurek.com/r/tanstack/data-table.jsonshadcnpnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/data-table.json

Why it is built this way

The decision somebody would otherwise have to reverse-engineer from the source. Not what the code does - the source says that - but what it is avoiding.

What it does not do

The boundary. A component that lists what it is not is a component you can decide against in ten seconds.

Install commands are not written here

Anything in packages/ui/registry.ts gets its TanStack, shadcn and pnpm commands appended to the bottom of this tab, along with its version, dependencies and files. Do not add your own - the generated ones cannot go stale, and a second copy immediately does.

Install

tanstack add https://adamjurek.com/r/tanstack/data-table.json
shell
pnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/data-table.json
shell
pnpm add @sushindustries/ui @sushindustries/atoms
shell

What you get

Version0.1.0
Categorycontent · Data
Filesdata-table.tsx
Dependencies@tanstack/react-table@^9.1.2
Tagsdata, sorting, filter, pagination, tanstack