Getting started
Mantine DataTable depends on @mantine/core, @mantine/hooks and clsx.
Create a new application with Mantine, install mantine-datatable and make sure you have the clsx dependency installed as well:
Don’t forget to import the necessary CSS files and apply the styles in the correct order.
Very important
For example, if you’re using a Next.js application with an app router, your 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:
No records
Next, let’s make sure you have a good understanding of how styling works before browsing the usage examples and taking a look at the type definitions page.











