1 viewer
Component · Data
Table
Tabular data display with optional sorting, paging, and detail rows.
- Category
- Data
- Slots
- 12
- States
- 3
- Writer
- Shared
Preview
| Peer ID | Transport | Latency | Status |
|---|---|---|---|
| c8-node-alpha | WebSocket / Wire | 14ms | Synced |
| c8-node-bravo | WebRTC P2P | 42ms | Active |
| c8-node-charlie | HTTP/2 | 88ms | Idle |
<Table
columns={[
{ key: "peer_id", label: "Peer ID", sortable: true },
{ key: "transport", label: "Transport" },
{ key: "latency", label: "Latency", sortable: true },
{ key: "status", label: "Status" }
]}
rows={[
{
latency: "14ms",
peer_id: "c8-node-alpha",
status: "Synced",
transport: "WebSocket / Wire"
},
{ latency: "42ms", peer_id: "c8-node-bravo", status: "Active", transport: "WebRTC P2P" },
{ latency: "88ms", peer_id: "c8-node-charlie", status: "Idle", transport: "HTTP/2" }
]}
title="Peer Connections"
/>Anatomy
The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.
| Slot | DOM class |
|---|---|
| root | .primitive-table |
| title | .primitive-table__title |
| empty | .primitive-table__empty |
| scroll | .primitive-table__scroll |
| grid | .primitive-table__grid |
| head | .primitive-table__head |
| body | .primitive-table__body |
| row | .primitive-table__row |
| cell | .primitive-table__cell |
| heading | .primitive-table__heading |
| pagination | .primitive-table__pagination |
| count | .primitive-table__count |
- State attribute
- data-render-modefrom the renderMode prop
- Hydration markers
- data-cre8-table
States and platforms
The states the contract publishes, the platforms it declares, and the style recipes that dress it.
States
Platforms
Recipes
Renderers
Every tag in the example above renders through a shared writer.
Declared adapters. A status is the manifest's declaration, not a measured parity result.
| Target | Renderer | Status |
|---|---|---|
| web | react | experimental |
| runtime-node | view-node | ready |
| ssr | html-data | ready |
| terminal | terminal-table | planned |
| native | native-adapter | experimental |
Accessibility
Keeps native table semantics while allowing title-less labelling and runtime inspection metadata on both the section shell and the table element.
- Sortable headers expose button semantics and sort direction.
- Expanded details remain reachable from the row interaction.
- Title-less tables use aria-label or aria-labelledby so the semantic table still has a stable accessible name.