Skip to Content

Table

A table displays data in rows and columns and enables a user to navigate its contents via directional navigation keys, and optionally supports row selection and sorting.

NameEmailDate created
Bob[email protected]5/5/2020
Fred[email protected]4/7/2021
Ted[email protected]11/20/2010
Joe[email protected]1/18/2016

Selection

NameEmailDate created
Bob[email protected]5/5/2020
Fred[email protected]4/7/2021
Ted[email protected]11/20/2010
Joe[email protected]1/18/2016

Alignment

NameTypeDate modified
GamesFile folder6/7/2020
Program FilesFile folder4/7/2021

Component props

Table

NameTypeDescription
selectionModeSelectionMode"none" | "single" | "multiple"
selectedKeysstring[]Controlled selected row keys
defaultSelectedKeysstring[]Default selected row keys
onSelectionChange(keys: Selection) => voidCalled when selection changes

TableColumn / TableCell

NameTypeDescription
alignAlignment"start" | "center" | "end"