Skip to content

React data table components

Free React data table components: sortable headers, row selection, bulk actions, inline edit, column visibility, filters, pagination and loading states.

25 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

DataTable is the centre of this category: sortable headers, row selection with a bulk action bar, hover row actions, a sticky header, density and skeleton loading. You define columns once with a cell renderer and pass data. The smaller parts (Table, SortableHeader, TableToolbar, ColumnVisibilityMenu, TablePagination) also work alone when you want a plain table with one or two extras.

For long lists, VirtualizedList renders only the rows in view and VirtualList adds measured row heights and keyboard row navigation. InfiniteScroll loads the next page as the reader nears the end. Empty, loading and refreshing states each have their own component, so a table never shows a blank box.

Which one should I use?

You needUseWhy
Sort, select and act on recordsData TableColumns defined once, data passed in
A static table with no interactionTableSemantic HTML, tabular numbers
Search and filters above a tableTable ToolbarSearch left, actions right
Let people hide columnsColumn Visibility MenuReturns ids in column order
Act on the selected rowsBulk Actions BarHidden at zero, count is announced
Page through resultsTable Pagination"Page 2 of 9", controlled
Build AND filters on fieldsQuery BuilderField, operator, value rows
Show ten thousand rowsVirtual ListOnly visible rows in the DOM
Load more as people scrollInfinite ScrollKeeps a real Load more button
Edit a cell in placeInline Cell EditEnter saves, Escape cancels
A wide table with a pinned columnSticky ColumnOpaque, so rows pass underneath
A table with no rows yetEmpty TableWith an optional create action
The first loadLoading TableMatch rows and columns to avoid shift
A log of who changed whatAudit TrailNewest first, relative times

25 items

npx shadcn@latest add @minidev/audit-filter-bar @minidev/audit-log-entry @minidev/audit-trail @minidev/bulk-actions-bar @minidev/column-visibility-menu @minidev/data-table @minidev/density-toggle @minidev/empty-table @minidev/expandable-row @minidev/filter-bar @minidev/inline-cell-edit @minidev/loading-table @minidev/query-builder @minidev/row-selection @minidev/saved-views @minidev/sortable-header @minidev/sticky-column @minidev/table-pagination @minidev/table-toolbar @minidev/table @minidev/virtualized-list @minidev/users-table-page @minidev/infinite-scroll @minidev/virtual-list @minidev/data-grid

Components 24

  • Filter toolbar for audit logs combining a search field, actor filter chips for all, admins or system, and a date range picker in one wrapping row.

    npx shadcn@latest add @minidev/audit-filter-bar
  • Single audit log line: actor avatar, actor name, muted action text and the affected target, with a relative timestamp underneath. Stacks into a trail.

    npx shadcn@latest add @minidev/audit-log-entry
  • Bordered audit trail in React that renders a list of actor, action, target and time records as stacked log entries. Useful for security and admin history pages.

    npx shadcn@latest add @minidev/audit-trail
  • Floating Tailwind selection bar that appears once rows are selected, showing the count, your action buttons and a clear button. Sticks to the bottom edge.

    npx shadcn@latest add @minidev/bulk-actions-bar
  • Columns dropdown for data tables with a checkbox item per column. It returns the updated list of visible column ids so you can show or hide table columns.

    npx shadcn@latest add @minidev/column-visibility-menu
  • React data table with sortable columns, row selection, a floating bulk actions bar, hover row actions, sticky header, three densities and skeleton loading.

    npx shadcn@latest add @minidev/data-table
  • Toggle group that switches between compact and comfortable density, reporting the choice to your handler. Pairs with data tables and dense list views.

    npx shadcn@latest add @minidev/density-toggle
  • Empty table placeholder with a dashed border, a No data yet title, helper text and an optional button to create the first row. For React tables.

    npx shadcn@latest add @minidev/empty-table
  • Bordered Tailwind row that expands to reveal details on click, with a rotating chevron and aria-expanded. Can start open and takes any content.

    npx shadcn@latest add @minidev/expandable-row
  • A wrapping Tailwind toolbar for tables and lists: a search input first, your own filter controls as children, and a Clear button when onClear is set.

    npx shadcn@latest add @minidev/filter-bar
  • Click to edit table cell text: the value turns into an input on click, saves on Enter or blur and cancels on Escape. Built for editable React data grids.

    npx shadcn@latest add @minidev/inline-cell-edit
  • A skeleton placeholder for data tables with configurable rows and columns, a header row and aria-busy so assistive tech knows content is loading.

    npx shadcn@latest add @minidev/loading-table
  • Filter query builder that chains field, operator and value clauses with AND. Add or remove rows, each with labelled selects, built in React and Tailwind.

    npx shadcn@latest add @minidev/query-builder
  • Row selection checkbox for data tables with checked and indeterminate states and a default Select row label. Pairs with a header checkbox for select all.

    npx shadcn@latest add @minidev/row-selection
  • Saved views list for filters, rendered as a listbox of named views with item counts and a highlighted active view. Works controlled or uncontrolled in React.

    npx shadcn@latest add @minidev/saved-views
  • Sortable table header button that shows an up, down or neutral arrow for the current sort direction and calls onToggle on click. Pairs with any Tailwind table.

    npx shadcn@latest add @minidev/sortable-header
  • Sticky table column wrapper that pins content to the left or right edge with a solid background and divider while the rest of a wide table scrolls horizontally.

    npx shadcn@latest add @minidev/sticky-column
  • Table pagination footer showing Page X of Y with previous and next icon buttons that disable at the first and last page. Wire it to onPageChange in React.

    npx shadcn@latest add @minidev/table-pagination
  • Toolbar above a data table with a search input on the left and a right slot for filters, view toggles or export buttons. Wraps cleanly on narrow screens.

    npx shadcn@latest add @minidev/table-toolbar
  • Table primitives for header, body, footer, row, head, cell and caption, wrapped in a horizontal scroll container. Same API as the shadcn Table, in Tailwind.

    npx shadcn@latest add @minidev/table
  • Virtualized list that renders only the visible rows plus a small buffer, using a fixed item height and absolute positioning. Keeps thousands of React rows fast.

    npx shadcn@latest add @minidev/virtualized-list
  • Load the next page when a sentinel scrolls into view, with a loading row, an end of list message and a Load more button as the accessible fallback.

    npx shadcn@latest add @minidev/infinite-scroll
  • React virtual list that renders only rows in view, with fixed or measured row heights, overscan, arrow key and Page Up/Down navigation and scrollToIndex.

    npx shadcn@latest add @minidev/virtual-list
  • Editable React data grid that works like a spreadsheet: arrow keys between cells, type to edit, block selection, copy and paste with Excel or Sheets, undo.

    npx shadcn@latest add @minidev/data-grid

Blocks and full pages 1

  • A React users admin page with an invite action, a search toolbar that filters rows as you type, and a data table with name, role and status badge columns.

    npx shadcn@latest add @minidev/users-table-page

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

See them live

Galleries render these components with sample data in every state.

Frequently asked questions

Do I need TanStack Table with this data table?

Not for sorting and selection: DataTable does both itself, using an optional sortValue per column. If you already use TanStack Table for server-side sorting, filtering or grouping, render its rows with the presentational parts instead: Table, SortableHeader, RowSelection and TablePagination.

How do I render 10,000 rows in React without lag?

Window the list. VirtualList keeps only the rows in the viewport, plus an overscan band, in the DOM; it supports measured row heights and scrollToIndex. VirtualizedList is the bare version for fixed row heights, where ten thousand rows cost about twenty DOM nodes. Or paginate on the server.

How do I keep the first column visible when a table scrolls sideways?

Wrap those cells in StickyColumn. It pins them to the left or right edge with an opaque background and a hairline on the inner edge. The scroll container needs overflow-x-auto.

Is there a ready-made users table page?

Yes. UsersTablePage is a members page with an Invite button, a search toolbar that matches name or email, and a sortable table of people with role and status.