Skip to content

Table Cell

@astryxdesign/core v0.7.1 · TableCell

Props ​

PropTypeDefaultDescription
align'start' | 'center' | 'end'—Alignment of the cell text. Left untouched, the cell uses the table's default alignment.
colSpannumber—How many columns the cell covers.
rowSpannumber—How many rows the cell covers.
headersstring—Ids of the header cells that describe this cell, so a screen reader can read the cell with its headers.

Slots ​

  • default: the cell content.

Native attributes ​

The root element is <td>. Every other attribute and event lands on it, so class, style, and id behave as they do on a plain table cell.