data-table organism experimental A sortable data table with clickable column headers and hover rows.
The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.
| Status | |||
|---|---|---|---|
| Acme Corp | Pro | 24 | Active |
| Globex | Enterprise | 120 | Active |
| Initech | Starter | 3 | Trialing |
| Umbrella | Pro | 48 | Past due |
data/data-tablename: "Data Table"
short_description: A sortable data table with clickable column headers and hover rows.
long_visual_description: >
A bordered table with column headers (sortable ones show a direction arrow on click) and
rows that highlight on hover.
use_cases:
- Admin data listing.
- Records or entities table.
- Reports and analytics table.
- Account or user management grid.
- Any tabular dataset.
recommended_for:
- Displaying rows of structured data with sortable columns.
avoid_for:
- Standings with domain columns (use league-table/group-standings-table).
markets:
- Global
example_usage: >
Mark columns sortable and set one sorted asc/desc; clicking a header cycles its sort
(none → asc → desc → none), reorders the rows client-side by that column, and also emits
data-table:sort so the app/server can sort authoritatively if it prefers.
props:
columns: The column definitions (label, sortable, sorted).
rows: The rows, each a list of cells.
example_prompts:
- "Add a sortable data table of companies and plans."
- "Add an admin table with sortable columns."
lifecycle: experimental
content_model: Column headers and data rows with per-column sort state.
theming:
tokens_used:
- --color-surface
- --color-surface-raised
- --color-on-surface
- --color-on-surface-muted
- --color-border
- --radius-card
- --shadow-card
- --duration-token
editorial_guidance: >
Keep column labels short; indicate the default sort so the order is predictable.
categorization:
category: Data
subcategory: Tables
atomic_type: organism
usage_type: [table]
maturity: ai-generated
wcag:
level: AA
notes: Real table with scoped column headers and aria-sort on sortable columns; sort controls are real buttons.
keyboard_support: Sortable headers are focusable buttons that cycle sort on Enter/Space.
seo_score: 45
text_direction: both
| Name | Type | Req |
|---|---|---|
| columns | array | ✓ |
| rows | array | ✓ |