Table Cell
@astryxdesign/core v0.7.1 · TableCell
Props
| Prop | Type | Default | Description |
|---|---|---|---|
align | 'start' | 'center' | 'end' | — | Alignment of the cell text. Left untouched, the cell uses the table's default alignment. |
colSpan | number | — | How many columns the cell covers. |
rowSpan | number | — | How many rows the cell covers. |
headers | string | — | 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.