ThatDesignUIOriginalInteractive preview
Data table with bulk actions
An invoices table with search, status filters with counts, sortable columns, row selection with an indeterminate select-all, and a floating bulk-action bar with undo.
- Category
- Tables
- Platform
- Responsive
Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state
Use this component
Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.
FreeReact 18+Tailwind v3.4 or v4No extra packages
1. Add it with the shadcn CLI
npx shadcn@latest add https://www.thatdesignui.com/r/data-table.json2. Use it
Every prop is optionalapp/page.tsx
import DataTable from "@/components/data-table";
export default function Page() {
return <DataTable />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- A 64rem white panel (22px radius): a title with the outstanding total, a search field, then filter chips (All, Paid, Pending, Overdue) with counts, the active chip black.
- Rows show a checkbox, customer name over invoice id and email, a status pill with a dot (green, amber, red), a short due date and a right-aligned amount; selected rows tint indigo.
- Selecting rows slides up a black floating toolbar with the count and Mark paid, Export, Delete and clear; Delete shows a toast with Undo.
- Pagination at the bottom with a '1–6 of 12' range; an empty search shows a message and a Clear search button.
How it behaves
- Clicking a column header sorts by it and a second click reverses it; aria-sort follows.
- The header checkbox is indeterminate when only some rows on the page are selected.
- Mark paid turns the selected rows Paid and updates the chip counts and the outstanding total.
- Delete removes the rows and Undo brings them back.



