A TanStack Table grid: sorting, pagination, selection, column menus, pinning, resizing, expandable rows, totals, loading, virtual rows.
API reference
Generated from the types. Every part also takes className.
DataGrid
- tablerequired
TanTable<TFeatures, T>- size
"sm" | "default"sm: 44 px rows for long lists on a desktop. Separate from the theme's data-density, which this follows too.- density
"default" | "dense"- variant
"default" | "striped" | "borders" | "borderless" = "default"- loading
boolean = false- emptyText
ReactNodeSame aslabels.empty, and wins over it.- labels
Partial<DataGridLabels>The words every part of the grid says, to translate them.- childrenrequired
ReactNode
DataGridTable
- maxHeight
number- virtual
boolean = false- aria-label
string
DataGridColumnHeader
- columnrequired
Column<TFeatures, T, unknown>- titlerequired
string
DataGridColumnVisibility
- label
stringSame as DataGrid'slabels.columns, and wins over it.
DataGridPagination
- pages
boolean = true- labels
LabelsPagination's words, to translate them.
DataGridSelectionSummary
- children
ReactNode