MRT logoMaterial React Table

Installation

material-react-table requires Material UI V5 packages as dependencies in your project.

If you are already using Material UI, 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.

  1. @mui/material (v5)

  2. @mui/icons-material (v5)

  3. @emotion/react (v11)

  4. @emotion/styled (v11)

Quick Install

NPM

npm install material-react-table

PNPM

pnpm add material-react-table

Yarn

yarn add material-react-table

Install With Required Peer Dependencies (Recommended)

NPM

npm install material-react-table @mui/material @mui/icons-material @emotion/react @emotion/styled

PNPM

pnpm add material-react-table @mui/material @mui/icons-material @emotion/react @emotion/styled

Yarn

yarn add material-react-table @mui/material @mui/icons-material @emotion/react @emotion/styled

You do not need to install @tanstack/react-table, as @tanstack/react-table (React Table V8) is already an internal dependency of material-react-table.

All internal dependencies: @tanstack/match-sorter-utils, @tanstack/react-table, react-virtual