Empty State

Customize what users see when the table has no rows with tableEmptyStateRenderer.

Custom empty state

Pass tableEmptyStateRenderer to replace the blank body when rows is empty (no data or filters match nothing).

React TSX
const EmptyState = () => (
<div style={{ padding: 48, textAlign: "center", color: "#6b7280" }}>
No data available
</div>
);
<SimpleTable
columns={columns}
rows={[]}
tableEmptyStateRenderer={<EmptyState />}
/>

Loading vs empty

While fetching data, use isLoading instead — the empty renderer only applies when there are no rows and loading is off.

Example

An empty table with a custom message. Use Code or StackBlitz for the full example.

Props

Empty State Configuration

PropertyRequiredDescriptionExample
tableEmptyStateRenderer
ReactNode | HTMLElement | string | null
Optional
Custom content shown in the table body when there are no rows. Framework adapters accept components or elements; vanilla accepts a string or DOM node.