Table
Data display
Takes a block
Data table. Cells inside Table.Head render as <th scope="col">; caption is the table's accessible name, visually hidden.
Table(caption: …) { … }
Example
Table(caption: "Deploys") {
Table.Head { Table.Row { Table.Cell("Region") Table.Cell("Status") } }
Table.Body { Table.Row { Table.Cell("fra1") Table.Cell("Healthy") } }
}
Renders with the class wf-table, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| caption: | String |
Accessible name of the table (rendered visually hidden) |
Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.