Skip to content

Table Header Cell

@astryxdesign/core v0.7.1 · TableHeaderCell

Props ​

PropTypeDefaultDescription
align'start' | 'center' | 'end'—Alignment of the header text. Left untouched, the cell uses the table's default alignment.
colSpannumber—How many columns the header cell covers.
rowSpannumber—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.