Menu
Esc
DocsGitHub TR

Components

Table

Rows of data in columns, with optional sorting and row selection. Pair it with Pagination for long lists.

Open in Figma

Playground

People
Status
Ada LovelaceEngineeringActive12
Alan TuringEngineeringAway5
Grace HopperResearchActive8
Hedy LamarrDesignAway3
Katherine JohnsonAnalyticsActive15
Margaret HamiltonEngineeringActive21
Radia PerlmanResearchActive9
1 selected

Figma variant

Table
.Table Header Cell › ↕ Sort=Ascending / Descending / None
.Table Cell › 🎛 Type=Checkbox + Text
.Table Row › 🕹 State=Default / Hover / Selected

Parts

A header cell (text, with a sort arrow when sorted, or the select-all checkbox), a body cell (text that truncates, or a row checkbox) and a row with Default, Hover and Selected states, inside a card with a line around it.

Tokens

PartToken
Frame--color-surface-level-1, --border, --radius-card
Header cell--color-surface-level-2, --text-ui-text-small-bold, --color-foreground-medium-emphasis
Body cell--text-ui-text-regular, --color-foreground-high-emphasis
Cell padding--layout-small --layout-default
Row hover / selected--color-surface-level-2 / --color-primary-soft

Figma to code

FigmaReact
.Table Header Cell › ↕ Sort = None / Ascending / Descendingcolumn.sortable + sort.direction = 'ascending' / 'descending'
.Table Header Cell › 🎛 Type = Checkboxselectable
.Table Cell › 🎛 Type = Text / Checkboxcolumn.cell / selectable
.Table Row › 🕹 State = Hover / Selected:hover / selected={[…]}