Data Table
A table of records that can be sorted, selected, or shown empty or loading.
| Tray | Variants | ||
|---|---|---|---|
| Hero tray | Home | 3 | |
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Modal | Overlays | 4 |
Live preview · click to try it
Variants
2 named variants. Layer names match the names below.
| Tray | Variants | ||
|---|---|---|---|
| Hero tray | Home | 3 | |
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Modal | Overlays | 4 |
ComfortableData Table / Comfortable
| Tray | Variants | ||
|---|---|---|---|
| Hero tray | Home | 3 | |
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Modal | Overlays | 4 |
CompactData Table / Compact
States
| Select | Tray | Variants | |
|---|---|---|---|
| Hero tray | Home | 3 | |
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Modal | Overlays | 4 |
Data Table / Default
| Tray | Variants | ||
|---|---|---|---|
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Hero tray | Home | 3 | |
| Modal | Overlays | 4 |
Data Table / Sorted
| Select | Tray | Variants | |
|---|---|---|---|
| Hero tray | Home | 3 | |
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Modal | Overlays | 4 |
Data Table / Selected
No records in this tray.
Data Table / Empty
Loading records…
Data Table / Loading
The records could not be loaded.
Data Table / Error
| Select | Tray | Variants | |
|---|---|---|---|
| Hero tray | Home | 3 | |
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Modal | Overlays | 4 |
Data Table / Disabled
| Select | Tray | Variants | |
|---|---|---|---|
| Hero tray | Home | 3 | |
| Button | Actions | 12 | |
| Form Field | Inputs | 6 | |
| Modal | Overlays | 4 |
Data Table / Focus
Usage
Do
- Lists of records a person can scan, sort or select.
Don't
- Layout for a few facts; use Stat Block or a card.
Properties
| Property | Type or options | Default |
|---|---|---|
| Variant | Comfortable · Compact | Comfortable |
| Rows | Array of records | Sample trays |
| Selectable | Boolean | On |
| Sort | Column key or none | Name |
Styles it uses
Surface/TileSurface/RaisedAccent/SoftInk/PrimaryInk/SecondaryLine/RuleState/Focus
Text: Table · Label · Data Mono
Accessibility
- Header buttons announce sort direction.
- Selected rows use a checkbox with a visible 3px State/Focus ring.
- Empty and loading states are text, not colour alone.