Getting Started

Comparison

shadcn-table, TanStack Table, the shadcn/ui data-table recipe, Material React Table and AG Grid compared: install, bases, features, styling, license.

Five common ways to build a data table in a React project, side by side. Each cell states only what the project's own public documentation or repository shows on 2026-11-13; "not covered" means the shadcn/ui guide does not show it. Corrections are welcome on GitHub.

Feature matrix

shadcn-tableTanStack Tableshadcn/ui data-table recipeMaterial React TableAG Grid
Install modelCopied source, shadcn registry (shadcn add)npm package (@tanstack/react-table)A guide; you write the codenpm package (material-react-table)npm package (ag-grid-react)
Base librariesBase UI, Radix UI, React AriaNone; headless, no markup or stylesBase UI, Radix UI, React AriaMaterial UINone; the grid ships its own UI and styles
SortingBuilt inSorting feature and sorted row modelCovered in the guideBuilt inBuilt in (Community)
FilteringBuilt in, several filter modesColumn and global filtering features, facetingOne text input filtering one columnBuilt inText, number and date filters (Community); set, multi and advanced filters (Enterprise)
Grouping and aggregationBuilt inGrouping and aggregation featuresNot coveredBuilt inEnterprise
Column and row pinningBuilt inColumn and row pinning featuresNot coveredBuilt inBuilt in (Community)
VirtualizationBuilt in, rows and columnsNot a table feature; examples with TanStack VirtualNot coveredBuilt in, rows and columnsBuilt in, rows and columns (Community)
EditingBuilt inNot a stock feature; TanStack Form exampleNot coveredBuilt inBuilt in (Community)
ExportNot built in; CSV and PDF examplesNot a stock featureNot coveredNot built in; CSV and PDF examplesCSV (Community); Excel and PDF (Enterprise)
i18n39 localesNo UI text (headless)No UI strings; RTL section38 locales (docs list)46 provided locales
StylingYour shadcn/ui components and Tailwind CSSYour own markup and stylesshadcn/ui Table and Tailwind CSSMaterial UI theme, sx and mui*PropsBuilt-in themes, theme parameters and CSS
TanStack Table versionv9v9 (9.3.1)v9v8 (8.20.6)Not built on TanStack Table
LicenseMITMITMIT (shadcn/ui)MITCommunity MIT; Enterprise commercial

Which one fits

Pick TanStack Table on its own when you want the engine only: it brings sorting, filtering, grouping and pinning as opt-in features and leaves all markup and styles to you. Pick the shadcn/ui data-table recipe when you want to own every line: the guide builds a table on TanStack Table v9 with pagination, sorting, a filter on one column, column visibility and row selection, and you write anything beyond that yourself. Pick Material React Table when your app already uses Material UI: it has sorting, filtering, grouping, pinning, virtualization and editing built in, on TanStack Table v8, and it styles through the Material UI theme rather than shadcn/ui. Pick AG Grid when you want a grid that ships its own UI and themes; grouping, aggregation and Excel or PDF export need the commercial Enterprise license. Pick shadcn-table when your app uses shadcn/ui and you want those features built in, rendered through your own components on Base UI, Radix UI or React Aria. See TanStack Table with shadcn/ui for how it is put together.

Sources

On this page