Components · Data Display

Data Table

Shows rows of data that people need to compare.

Automated a11y scan passing Element: <table>

Component Workbench

Switch between the live interactive preview, syntax-highlighted implementation code, copyable AI coding agent prompt, and designer anatomy blueprint.

Data Table · Canonical Spec
Cluster nodes
NodeRegionStatusLatency
iad-01us-east-1Active1.24 ms
sfo-04us-west-2Active2.89 ms
fra-09eu-central-1Degraded14.10 ms
gru-05sa-east-1Offline38.70 ms
lhr-02eu-west-2Active3.07 ms

When to use it

Do

  • Right-align numbers so digits line up.
  • Give the table a caption, even if it's visually hidden.

Don't

  • Use it for page layout.
  • Squeeze in columns nobody compares.

Accessibility & Keyboard Interaction

Requirements for using this component accessibly, following the W3C ARIA Authoring Practices Guide.

Interaction / KeyBehavior & Compliance Requirement
Caption & ScopesIncludes <caption>, scope="col", and scope="row".
Sort CyclingUpdates aria-sort="ascending|descending|none" on header cells.
Overflow RegionScroll container receives tabindex="0" and role="region" when overflowing.

Tokens

Values update with the current theme.

RoleTokenCurrent value
Row Height--as-density-table-row-height
Header Surface--as-semantic-color-surface-subtle
Row Divider--as-semantic-color-border-subtle
Esc
↑↓ navigateEnter openEsc close