Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

TableRow

Open .md
Live preview

Loading example…

TableRow is part of the Containers set, imported from @jcsoftdev/ui/containers.

import { TableRow } from "@jcsoftdev/ui/containers";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/table.

<TableRow aria-label="Inventario de productos">
<>
<TableHead>
<tr>
<TableHeaderCell>Producto</TableHeaderCell>
<TableHeaderCell>SKU</TableHeaderCell>
<TableHeaderCell alignRight>Stock</TableHeaderCell>
<TableHeaderCell alignRight>Precio</TableHeaderCell>
</tr>
</TableHead>
<TableBody>
{inventory.map((item) => (
<TableRow key={item.sku}>
<TableCell>
{item.name} {item.low ? <Chip tone="danger">Stock bajo</Chip> : null}
</TableCell>
<TableCell>{item.sku}</TableCell>
<TableCell alignRight>{item.stock}</TableCell>
<TableCell alignRight>{item.price}</TableCell>
</TableRow>
))}
</TableBody>
</>
</TableRow>
Prop Type Default Description
rowKey string Identifies the row for selection. In a table with selection the row reports aria-selected and highlights when its key is selected.
intent string
intentKey string

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/containers/table/table.tsx