This guide explains how and why to migrate from Material UI v5 to v6.
In the package.json
file, change the package version from latest
to next
.
-"@mui/material": "latest",
+"@mui/material": "next",
Using next
ensures your project always uses the latest v6 alpha release.
Alternatively, you can also target and fix it to a specific version, for example, 6.0.0-alpha.0
.
Since v6 is a new major release, it contains some changes that affect the public API. The steps you need to take to migrate from Material UI v5 to v6 are described below.
:::info This list is a work in progress. Expect updates as new breaking changes are introduced. :::