Table
A real <table>. Columns are described once — width, sticky, sortable, hidden — and each cell is the column’s field, or what your snippet draws. Selection, sorting and loading are drawn from plain props: where the rows come from is not the table’s business.
| Class | Effect | Type |
|---|---|---|
.table | A real <table>. Columns are described once — width, sticky, sortable, hidden — and each cell is the column’s field, or what your snippet draws. Selection, sorting and loading are drawn from plain props: where the rows come from is not the table’s business. | root |
.table-xs.table-sm.table-md.table-lg.table-xl | Sets size, one class per value. | axis size |
.table-hover | Written by the hover prop. | flag |
.table-loading | Written by the loading prop. | flag |
.table-pinned | Written by the pinned prop. | flag |
.table-zebra | Written by the zebra prop. | flag |
.table-cell | A header or body cell. | part |
.table-empty | The cell drawn in place of the rows when there are none. | part |
.table-head | The header row. | part |
.table-row | A body row. | part |
.table-row-dirty | A row whose key is in `dirty`: changed, not saved. | part |
.table-row-selected | A row whose key is in `selected`. | part |
.table-scroll | The box the table scrolls in, sideways and — with a maxHeight — down. | part |
.table-sort | The button a sortable header holds. aria-sort on the cell draws the arrow. | part |
.table-sticky | A cell of a sticky column, pinned to the start edge. | part |
.table-sticky-last | A cell of the last sticky column, which draws the edge. | part |