Data table preview
Sortable column controls, native row selection and a scrollable table.
pro · Data · composite
When to use
- Use it when a page needs sortable column controls, native row selection and a scrollable table.
- Choose it when the data structure, labels, and state are supplied by the application and must remain consumer controlled.
Alternatives
- Choose data-grid instead when use the grid for keyboard cell navigation, inline editing, and controlled row selection.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/data-tableImport components/ui/tidal.css, components/ui/data-table.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/data-table.css";
import{TidalDataTable}from"./components/ui/data-table";
export default()=><div className="tidal-scope"><TidalDataTable caption={"Demo"} columns={[{id:"example",label:"Demo",cell:() => "value"}]} getRowId={() => "value"} rows={[{ id: "example" }]}/></div>;API and props
TidalDataTable.caption (required)stringRequired caption value accepted by this exported component.
TidalDataTable.columns (required)ReadonlyArray<TidalTableColumn<T>>Required columns value accepted by this exported component.
TidalDataTable.getRowId (required)(row: T) => stringRequired get row id value accepted by this exported component.
TidalDataTable.rows (required)ReadonlyArray<T>Required rows value accepted by this exported component.
TidalDataTable.busyboolean | undefinedOptional busy value accepted by this exported component.
TidalDataTable.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalDataTable.emptyReactNodeOptional empty value accepted by this exported component.
TidalDataTable.maxHeightnumber | undefinedOptional max height value accepted by this exported component.
TidalDataTable.minTableWidthnumber | undefinedOptional min table width value accepted by this exported component.
TidalDataTable.onSortChange((sort: TidalTableSort | null) => void) | undefinedCallback invoked when the sort change interaction is proposed.
TidalDataTable.selectionTidalTableSelection<T> | undefinedOptional selection value accepted by this exported component.
TidalDataTable.sortTidalTableSort | null | undefinedOptional sort value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.