Examples › Empty state
minHeightWhen the records property is an empty array, the DataTable component indicates its empty state by displaying a customizable icon and text, like so:
You can change the displayed text (No records by default) by setting the noRecordsText property:
You can also replace the icon by setting the noRecordsIcon property:
If you’re not happy with the standard empty state indicator, you can replace it entirely by setting the emptyState property. The provided content will be overlaid and centered automatically. Note that emptyState and noRecordsIcon are mutually exclusive, and noRecordsText is ignored when emptyState is set:
No data found...
Interactive custom empty state content
The empty state overlay has its pointer-events CSS property set to none, so that it doesn’t get in the way of the table underneath.
This means that if you need to add interactive content to a custom empty state, you’ll have to re-enable pointer events on the interactive elements by setting their pointer-events CSS property to all:
No data found...
Head over to the next example to discover more features.












