Data grid preview
Edit and select consumer-owned records with contained spreadsheet keyboard movement.
pro · Data · composite
When to use
- Use it when a page needs edit and select consumer-owned records with contained spreadsheet keyboard movement.
- Choose it when the data structure, labels, and state are supplied by the application and must remain consumer controlled.
Alternatives
- Choose data-table instead when use the table for read-oriented records that do not need spreadsheet-style cell interaction.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/data-gridImport components/ui/tidal.css, components/ui/data-grid.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/data-grid.css";
import{TidalDataGrid}from"./components/ui/data-grid";
export default(p:Parameters<typeof TidalDataGrid>[0])=><div className="tidal-scope"><TidalDataGrid {...p}/></div>;API and props
TidalDataGrid.activeCell (required)TidalDataGridCell | nullRequired active cell value accepted by this exported component.
TidalDataGrid.caption (required)stringRequired caption value accepted by this exported component.
TidalDataGrid.columns (required)ReadonlyArray<TidalDataGridColumn<T>>Required columns value accepted by this exported component.
TidalDataGrid.editingCell (required)TidalDataGridCell | nullRequired editing cell value accepted by this exported component.
TidalDataGrid.editValue (required)stringRequired edit value value accepted by this exported component.
TidalDataGrid.getRowId (required)(row: T) => stringRequired get row id value accepted by this exported component.
TidalDataGrid.getRowLabel (required)(row: T) => stringRequired get row label value accepted by this exported component.
TidalDataGrid.onActiveCellChange (required)(cell: TidalDataGridCell, event: SyntheticEvent<HTMLElement>) => voidCallback invoked when the active cell change interaction is proposed.
TidalDataGrid.onCellCommit (required)(cell: TidalDataGridCell, value: string, event: FormEvent<HTMLFormElement>) => voidCallback invoked when the cell commit interaction is proposed.
TidalDataGrid.onEditingCellChange (required)(cell: TidalDataGridCell | null, event: SyntheticEvent<HTMLElement>) => voidCallback invoked when the editing cell change interaction is proposed.
TidalDataGrid.onEditValueChange (required)(value: string, event: ChangeEvent<HTMLInputElement>) => voidCallback invoked when the edit value change interaction is proposed.
TidalDataGrid.rows (required)ReadonlyArray<T>Required rows value accepted by this exported component.
TidalDataGrid.cancelButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "type" | "aria-disabled" | OwnedMarkup> | undefinedOptional cancel button props value accepted by this exported component.
TidalDataGrid.cancelButtonRefRef<HTMLButtonElement> | undefinedOptional cancel button ref value accepted by this exported component.
TidalDataGrid.descriptionReactNodeOptional description value accepted by this exported component.
TidalDataGrid.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalDataGrid.labelsPartial<TidalDataGridLabels> | undefinedOptional labels value accepted by this exported component.
TidalDataGrid.readOnlyboolean | undefinedOptional read only value accepted by this exported component.
TidalDataGrid.saveButtonPropsOmit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "aria-disabled" | OwnedMarkup> | undefinedOptional save button props value accepted by this exported component.
TidalDataGrid.saveButtonRefRef<HTMLButtonElement> | undefinedOptional save button ref value accepted by this exported component.
TidalDataGrid.selectionTidalDataGridSelection<T> | undefinedOptional selection value accepted by this exported component.
TidalDataGrid.tablePropsOmit<TableHTMLAttributes<HTMLTableElement>, "role" | "aria-colcount" | "aria-rowcount" | OwnedMarkup> | undefinedOptional table props value accepted by this exported component.
TidalDataGrid.tableRefRef<HTMLTableElement> | undefinedOptional table ref value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The consumer owns row identity, edit state, validation, commit behavior, and persistence.