Table Header Cell
@astryxdesign/core v0.7.1 · TableHeaderCell
Props
| Prop | Type | Default | Description |
|---|---|---|---|
align | 'start' | 'center' | 'end' | — | Alignment of the header text. Left untouched, the cell uses the table's default alignment. |
colSpan | number | — | How many columns the header cell covers. |
rowSpan | number | — | How many rows the header cell covers. |
Slots
default: the header cell content.
Attributes
The rest of the attributes land on the <th>, so class, style, and id work as they do on a plain header cell. The rendered element always carries scope="col", which is what lets a screen reader tie each column's cells to this header.