This is the install guide for
@mantine/packages V6. MRT V1 will not work with Mantine V7. MRT V2 will be released by the end of 2023 and will work with Mantine V7.
mantine-react-tableV1 requires Mantine V6.0+ packages as dependencies in your project.If you are already using Mantine, you probably already have most of these peer dependencies installed.Just double-check that you have the following in your package.json, or use the full install commands below.
Install With Required Peer Dependencies (Recommended)
You do NOT need to install
@tanstack/react-table, as it is already an internal dependency of
mantine-react-table, and must use an exact version already specified internally.All internal dependencies:
If you don't see any styles applied to the mantine table components, you may have mismatching versions of
@mantine/core. MRT v1 requires Mantine v6 and will not work with Mantine v7. MRT v2 will be released by the end of 2023 and will work with Mantine v7.
If you get an error like this:
You probably do not have the correct version of Mantine or Tabler Icons installed.
Make sure all mantine packages are at least v6.
Make sure that the
@tabler/icons-reactpackage is at least v2.23.0.
If you are using an older version of
create-react-appand get an error like this:
Then try upgrading either
react-scriptsto the latest versions.
If you are using the Next.js App Directory and get an error like this:
Mantine itself does not work with React Server components and will require
"use-client"on all components from both Mantine and MRT. The creator of Mantine recommends not using Mantine in the Next.js App Directory at all. Mantine V7 and MRT V2 should address this issue by the end of 2023.