React data table components
Free React data table components: sortable headers, row selection, bulk actions, inline edit, column visibility, filters, pagination and loading states.
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 need | Use | Why |
|---|---|---|
| Sort, select and act on records | Data Table | Columns defined once, data passed in |
| A static table with no interaction | Table | Semantic HTML, tabular numbers |
| Search and filters above a table | Table Toolbar | Search left, actions right |
| Let people hide columns | Column Visibility Menu | Returns ids in column order |
| Act on the selected rows | Bulk Actions Bar | Hidden at zero, count is announced |
| Page through results | Table Pagination | "Page 2 of 9", controlled |
| Build AND filters on fields | Query Builder | Field, operator, value rows |
| Show ten thousand rows | Virtual List | Only visible rows in the DOM |
| Load more as people scroll | Infinite Scroll | Keeps a real Load more button |
| Edit a cell in place | Inline Cell Edit | Enter saves, Escape cancels |
| A wide table with a pinned column | Sticky Column | Opaque, so rows pass underneath |
| A table with no rows yet | Empty Table | With an optional create action |
| The first load | Loading Table | Match rows and columns to avoid shift |
| A log of who changed what | Audit Trail | Newest 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-gridComponents 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-barSingle 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-entryBordered 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-trailFloating 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-barColumns 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-menuReact 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-tableToggle 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-toggleEmpty 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-tableBordered 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-rowA 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-barClick 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-editA 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-tableFilter 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-builderRow 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-selectionSaved 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-viewsSortable 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-headerSticky 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-columnTable 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-paginationToolbar 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-toolbarTable
uiTable 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/tableVirtualized 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-listLoad 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-scrollReact 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-listEditable 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
Users Table Page
blockA 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.