Cell
Cell is a single data cell, slotted into an
When to use
One cell per column, in order, inside every
Install & usage
npm install @eunomia/elements
import "@eunomia/elements/table-cell.js";
<eun-table-cell>Ada Lovelace</eun-table-cell>
Properties
Cell <eun-table-cell>
Slots
| Name | Description |
|---|---|
| (default) | The cell's content, entirely free-form |
CSS custom properties
| Name | Description |
|---|---|
| --table-cell-align | Sets the horizontal alignment of the cell's content, such as center or flex-end |
| --table-cell-color | Sets the text color |
| --table-column-border-color | Sets the color of a vertical divider on this cell's trailing edge, between it and the next column. Transparent, with no divider, by default |
CSS shadow parts
| Name | Description |
|---|---|
| cell | The cell's own padded content box. Exposed for effects the cell's CSS custom properties don't cover |
Arbitrary content
<eun-table-cell>
<div style="display: flex; align-items: center; gap: 8px;">
<eun-icon name="check_circle" size="18"></eun-icon>
<span>Ship release notes</span>
</div>
</eun-table-cell>
role="gridcell". It participates in the owning eun-table's
roving-tabindex grid. See
Tab once the cell itself has the roving focus.