Installation
material-react-tablerequires 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.
@mui/material(v5)
@mui/icons-material(v5)
@emotion/react(v11)
@emotion/styled(v11)
reactandreact-dom(v17 or v18) - MUI v5 requires React 17 or 18
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 it is already an internal dependency ofmaterial-react-table.All internal dependencies:
@tanstack/match-sorter-utils,@tanstack/react-table,react-virtual