DataTable

1.0.0

Sortable, filterable, and paginated data table built with TanStack Table.

Component data

ID
data-table
Category
atoms
Version
1.0.0
Added
2026-09-17
Type
component
Keyboard nav
Yes
Reduced motion
Yes
data-tabletabletanstackpaginationsortingatom

Dependencies

  • @tanstack/react-table
  • lucide-react
  • clsx
  • tailwind-merge

Registry

  • button
  • checkbox
  • dropdown-menu
  • input

Examples

Default

<div className="w-[800px] bg-background p-4 text-foreground">
      <DataTable />
    </div>

Empty

<div className="w-[800px] bg-background p-4 text-foreground">
      <DataTable data={[...dataTableMocks.empty]} />
    </div>

Related