Table
A native table in parts, a header row over body rows, solid with base corners by default.
Usage
Examples
Appearances
appearance paints the table's ground on the kit's one scale: solid, the default, soft on the grey wash, outline with only its line, and transparent with neither.
Sizes
size sets how dense the rows are: sm 8px around each cell with 12px words, base 12px with 14px words (the default), or lg 16px with 16px words, and the head, the footer, an empty row and loading rows follow.
Border radius
borderRadius sets its corners on the kit's one scale: none, xs 4px, sm 6px, base 8px (the default), lg 12px or xl 16px.
Sort
onSortChange makes a TableHead a menu of Ascending and Descending, and sort marks the way the rows run: asc, desc or none, the default; the rows are the caller's to order.
Loading
While the rows load, the body holds rows of Skeleton under the same headers, and aria-busy tells screen readers so.
Empty
With no rows, TableEmpty spans every column and says so in a transparent NotFound, its words alone with no box.
API Reference
Table
TableProps · components/Table/Table.types.tsTableHeader
TableHeaderProps · takes the props of <thead>TableBody
TableBodyProps · takes the props of <tbody>TableFooter
TableFooterProps · takes the props of <tfoot>TableRow
TableRowProps · takes the props of <tr>TableHead
TableHeadProps · also takes the props of <th>TableCell
TableCellProps · takes the props of <td>TableEmpty
TableEmptyProps · takes the props of <td>TableCaption
TableCaptionProps · takes the props of <caption>It also takes the props of <table>.