id: empty_table
label: Empty Table
family: family-e-feedback
category: Display
intent: Show empty state inside a table
description: Empty table state display
composable: false
capabilities:
required_parts: []
optional_parts: []
tags: ["empty-table", "empty", "no-records", "no-data"]
keywords:
pain: Empty table rows break layout and screen reader semantics
promise: Empty state rendered as valid table row with proper ARIA
why: |
EmptyTablePrimitive enforces correct table structure using tr and td with colspan. It preserves row semantics while exposing status via aria-live. This guarantees no layout or accessibility break inside tables.
rules: ["CR-001", "CR-004"]
use_cases: ["empty data grids", "admin tables"]
related: ["table", "data_table", "virtual_list", "tree", "list_item"]
file: empty_table_ui.css
tokens: empty-table-*, space-*, font-*
foundation: spacing, typography
states: []
island: empty_table_boundary.rs
pillar: data
badges: ["SSR Safe", "Hydration Safe", "Token Driven", "Deterministic API", "Zero Drift"]
before: |
// ❌ Typical
view! {
<tbody>
<div>"No data"</div>
</tbody>
}
after: |
// ✅ CanonRS
view! {
<tbody>
<EmptyTable colspan=3u32 />
</tbody>
}
boundary_type: passthrough
block: [data_table_block]
blocks_primitives: [stack]