Cell Highlighting

Select cells or ranges to highlight and copy. Useful for analysis and spreadsheet-style workflows.

Enable cell selection

Set selectableCells so users can click cells, drag or Shift+arrow to extend a range, and copy with Ctrl/⌘+C.

React TSX
<SimpleTable columns={columns} rows={rows} selectableCells={true} />

Select columns from headers

Add selectableColumns to select a whole column from the header. For onColumnSelect and column-scoped actions, see Column Selection.

React TSX
<SimpleTable columns={columns} rows={rows} selectableCells={true} selectableColumns={true} />

Copy headers with cells

Set copyHeadersToClipboard so the first pasted row is the column labels.

React TSX
<SimpleTable columns={columns} rows={rows} selectableCells={true} copyHeadersToClipboard={true} />

Keyboard

Shift + ArrowExtend selection
Ctrl/⌘ + ASelect all cells
Ctrl/⌘ + Shift + ArrowExtend to edge of data
Home / EndFirst / last column in row
Ctrl/⌘ + Home / EndFirst / last cell in table
Page Up / Page DownMove by visible page

Copy and paste

Copy with Ctrl/⌘+C; paste with Ctrl/⌘+V. Only columns with editable: true accept paste — see Cell Editing.

Example

Click a cell or drag to select a range. Use Code or StackBlitz for the full example.

Props

Cell Highlighting Configuration

PropertyRequiredDescriptionExample
selectableCells
boolean
Optional
Enables clicking and keyboard selection of cells and ranges for copy/paste.
selectableColumns
boolean
Optional
Enables selecting an entire column by clicking its header.
copyHeadersToClipboard
boolean
Optional
When true, includes column headers as the first row when copying selected cells. Defaults to false.