datarequired Headers and rows. Cells are ReactNodes, so anything can go in one. | { headers: TableHeader[]; rows: ReactNode[][]; } | — |
onRowClick Called with the row index. Rows become focusable when set. | (rowIndex: number) => void | — |
searchable Add a search field that filters rows. | boolean | false |
searchPlaceholder Placeholder for that field. | string | Search... |
striped Alternate row backgrounds. | boolean | false |
hoverable Highlight the row under the pointer. | boolean | true |
compact Tighter row height, for dense data. | boolean | false |
loading Swap the rows for the loading state. | boolean | false |
emptyState What to render when there are no rows. | ReactNode | — |
actions Row actions, rendered in a trailing column. | TableAction[] | — |
stickyHeader Keep the header visible while the body scrolls. | boolean | false |
rowClassName Per-row class, by index. | (rowIndex: number) => string | — |
cellClassName Per-cell class, by row and column index. | (rowIndex: number, cellIndex: number) => string | — |
paginated Page the rows instead of rendering all of them. | boolean | false |
defaultPageSize Rows per page before the reader changes it. | number | 10 |
pageSizeOptions The sizes offered in the page-size control. | number[] | [5, 10, 20, 50] |
loadingState What to render while loading. | ReactNode | — |
| …and every FlexProps prop | inherited | — |
| string | — |
| string | — |
| React.CSSProperties | — |