Examples › Basic usage
In its most basic usage scenario, the DataTable component only requires the records and columns properties to be set:
The code above will produce the following result:
No records
A few things worth noting:
- each column’s
accessortells the component which record property to display in that column; - when a column doesn’t have a
title, one is generated by “humanizing” its accessor (i.e.streetAddressbecomes Street address); - each record must have a unique
idproperty, which is used as the row key; if your records are identified by a different property, have a look at the non-standard record IDs example.
Displaying nested properties
Accessors support dot-notation, so you can display nested object properties without writing a custom render function:
No records
However, there’s much more you can do with Mantine DataTable. Head over to the next example to learn about its basic properties.












