Table
atomLightweight token-styled HTML table with compound sub-components. Distinct from DataTable — no sorting, filtering, or pagination. Use for static reference data, props tables, and comparison grids.
Basic
Simple table with head and body.
Striped
Alternating row backgrounds for easier scanning.
With rich cell content
Embed other Lucent components inside cells.
Usage
Installation
API Reference
Table props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
striped | boolean | false | Applies alternating bgMuted backgrounds to even tbody rows. |
Table.Head | component | — | Renders <thead> with bgMuted background. Accepts Table.Row children. |
Table.Body | component | — | Renders <tbody>. Accepts Table.Row children. |
Table.Foot | component | — | Renders <tfoot> with bgMuted background. |
Table.Row | component | — | Renders <tr> with a hover highlight. Accepts Table.Cell children. |
Table.Cell | component | — | Renders <td> by default or <th scope="col"> when as="th". Header cells are semibold; data cells are regular weight. |