Hextech UI

Data Table

Live example

Data Table

Tab moves between table controls.

Avery62

Page 1 of 1 · 0 selected

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/data-table.json

API reference

These are the main Data Table options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
data / columnsreadonly T[] / DataColumn<T>[]—
getRowId / rowLabel(row: T) => string (required)—
selectionModenone | single | multiplenone
keyboardNavigationtab | celltab
resizablebooleanfalse
onReorder(id, target, before | after) => void—
pageSizepositive integer10
onLoadMore({ signal }) => void | Promise<void>—
autoLoadMore / hasMorebooleanfalse / true
loadKeystring | numberdata.length
scrollAreaClassNamestring—

Usage notes

Supply stable getRowId values and meaningful rowLabel text. Keep sorting, selection and loading ownership explicit. Rich table controls remain on this optional subpath; use the basic Table for static records.