Search

Search components and flows across the catalog

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.json

2. Use it

Every prop is optional
app/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

  1. 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.
  2. 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.
  3. Selecting rows slides up a black floating toolbar with the count and Mark paid, Export, Delete and clear; Delete shows a toast with Undo.
  4. 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.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component