Getting started
Mantine DataTable is built on top of Mantine and has no dependencies of its own. Its peer dependencies are @mantine/core and @mantine/hooks (version 9 or newer), react and react-dom (version 19 or newer), and clsx (version 2 or newer).
Start by creating an application with Mantine, then install mantine-datatable along with clsx:
Next, import the necessary CSS files and make sure the styles are applied in the correct order.
For example, if you’re using a Next.js application with the app router, your root layout.tsx could look like this:
Then you can import the component and use it in your application like so:
The above code will produce the following result:
Note that DataTable is a generic component: the type of the records is inferred from the records property, so callbacks such as render or onRowClick are fully typed and column accessor values are autocompleted, without any extra effort on your part.
Before browsing the usage examples and the type definitions, make sure you have a good understanding of how styling works.














