🎁 Biggest Drop: Ready to use 70+ Bento Cards with Bento Builder, 250+ Illustrations, 200+ New Blocks and Templates..

Visit changelog

Shadcn Datatable Columns

Give every column real control, drag to reorder, click to sort, or filter by a single field. Built for tables where the header does more than just label data.

Shadcn Blocks
Search Blocks
Sort by
Filter by Price
Loading preview...
Loading preview...
Loading preview...

Shadcn Datatable Columns: Reorderable, Sortable Column Examples

A row is only half the story. The column is where people decide what matters: which field to sort by, which order fields should read in, which ones to hide when the screen gets busy. These datatable column blocks handle that part. Drag handles, sort arrows, column filters and column-aware footers are already built into finished screens, so you're not wiring up drag-and-drop from scratch.

Every block is built with React, Tailwind CSS and shadcn/ui, and works with both Base UI and Radix UI. Open one, drag a column, sort a header, and copy it once it behaves the way your users would expect.

What Is a Datatable Column?

A datatable column is a single vertical field in a data table, like Name, Status or Amount, that holds one type of information for every row. Each column has a header at the top, and the header controls how that field behaves: whether it can be sorted, filtered, dragged to a new position, or hidden.

In a basic table, columns are fixed. In these blocks, the header does real work: click it to sort, drag it to reorder, or use it to filter that field specifically. That's what makes them column blocks rather than plain data tables.

Each one combines the Data Table component with Checkbox, Select, Badge, Input and Pagination, so the column behavior comes built in.

Components Used in These Columns Blocks

What You Get in Every Columns Block

  • Drag-to-reorder columns. A handle on each header so people can put the field they care about first.
  • Sortable headers. Click a column to sort by it, with a visible direction indicator.
  • A saved column order. The order survives a reload instead of resetting to default.
  • Column-aware filters. Filters that target a specific column, like status or industry, instead of the whole row.
  • Footer totals. Some blocks roll up a column into a summary, like a running count or total.
  • Dark mode. The examples follow your theme, so you can match your brand with the theme generator.

Where to Use These Column Blocks

Support and ticketing tools use column reordering to match a team's review process. CRM and sales tools use it so each rep can put their own priority field first. Admin and finance tools use sortable columns for coupons, invoices and pricing lists where one field, like code or amount, gets checked constantly. Pair them with a dashboard sidebar or a dashboard dialog for a full admin screen.

Related Datatable Block Categories

Columns is one of nine datatable categories on shadcn studio. Browse the others depending on what your table needs to do:

  • Datatable Example: Complete table screens with sorting, filters, selection and pagination already built in.
  • Datatable Drag & Drop: Drag column headers into a new order and see the sequence update live.
  • Datatable Editing: Edit a row, a cell or a side panel in place, with save and discard controls.
  • Datatable Expansion: Rows that open to reveal subtasks, line items or checklist cards.
  • Datatable Filtering: Search, condition builders, dropdowns and date ranges that narrow the table live.
  • Datatable Grouping: Rows grouped under headers with counts, totals and nested levels.
  • Datatable Infinite Scroll: Virtualized tables that load thousands of rows as you scroll.
  • Datatable Export: A toolbar Export menu for CSV, Excel and JSON downloads.
  • Datatable Advanced: Advanced dashboard tables with summary cards, inline charts, grouped rows and actionable status cells.

Explore More Shadcn Block Groups

Browse the full shadcn studio blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.

FAQs

A datatable column is a single vertical field in a table, like Name, Status or Amount, that holds one type of data for every row. Its header controls whether that field can be sorted, dragged to a new position, or filtered on its own.

A regular table has fixed columns in a fixed order. A column block lets people drag a header to reorder it, click it to sort, or filter by that field directly, so the table adapts to how each person wants to read it.

That depends on the block and how it's wired up. Some store the order in state so it holds until the page reloads, and you can persist it further by saving it to local storage or a user's settings.

Yes. Every block supports both, so you can use whichever primitive library your project already runs on.

Yes. The companies data table in this set pairs draggable columns with search, filters and an export button, so you can mix these behaviors in one table rather than picking just one.