Manifest
Data table. Rows that sort by value, select by row and stack into cards on a phone.
- Component
- Data table
- Pattern
- HTML table + aria-sort
- Outputs
- React + Tailwind, HTML/CSS/JS
- Status
- In stock, tested
Test bench
Runs the exported code, not a mock-up.
Manifest · React + TailwindFull width
| Keys | What happens |
|---|---|
| Tab | Move to each column heading, then through the row checkboxes. |
| EnterorSpace | Sort by the focused column, or tick the focused row. |
| ← → | Scroll the table sideways when it is wider than the screen. |
Take it home
React + Tailwind CSS v4: install with one command, or copy the file. Your options are already in it.
npx shadcn@latest add "/r/table.json"Run it in your project root. It writes components/table.tsx with the options you set here. Needs Tailwind CSS v4 and a project set up for the shadcn CLI (npx shadcn@latest init).