Components
Documentation contentTable
Use table for aligned columns of text. It contains table-row elements, each containing table-cell leaves; the validator checks this nesting. Give corresponding cells matching grow factors to align columns.
Rows have separators and a hover highlight. Bind selected to highlight a row, text-alignment="end" to right-align numeric cells, and on-press to handle cell activation.
table

Markup
Programmatic construction (Zig)
In a Zig view, the canvas.Ui builder constructs the same tree programmatically. The builder names differ from the markup: rows are .data_row and cells are .data_cell (the underlying widget kinds).
Use list for icon rows or a single column; use a table when columns need to align.
Attributes
| Attribute | Description |
|---|---|
grow | Flex grow factor; give spacer one. |
selected | Selected state; often a {a == b} equality. |
text-alignment | Horizontal alignment of text content: start|center|end. Consumed by text (plain and wrapped), status-bar, and surface titles; controls that own their label placement (button, badge) ignore it. On a bubble's reactions child it names the pill's dock (end is the default trailing dock). |
on-press | Dispatch a Msg on press: tag or tag:{payload}. Legal on any element — a bound press handler makes it pressable, and presses on plain text/icons inside it fall through to it (dragging still selects text). |
