From 43dccd0d231078f7650513adaa34854ee4bba353 Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Fri, 16 Aug 2024 10:49:56 +0700 Subject: [PATCH] move all deprecations to its own page --- .../migrating-from-deprecated-apis.md | 45 ++++ .../migration/upgrade-to-v6/upgrade-to-v6.md | 226 +++++++----------- 2 files changed, 135 insertions(+), 136 deletions(-) diff --git a/docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md b/docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md index ef8c580f37bd5a..dd449af5f953e1 100644 --- a/docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md +++ b/docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md @@ -40,6 +40,51 @@ The composed CSS classes are going to be deprecated and eventually removed in fa For example, the `.MuiAccordionSummary-contentGutters` class was deprecated in favor of the `.MuiAccordionSummary-gutters` and `.MuiAccordionSummary-content` classes. This improves the developer experience by reducing bloat and cognitive load. +### System props + +MUI System props (such as `mt={*}`, `bgcolor={*}`, and more) have been deprecated in the Box, Typography, Link, Grid, and Stack components. +Use the codemod below to move all System props to the `sx` prop: + +```bash +npx @mui/codemod@next v6.0.0/system-props +``` + +You can also manually update your components as shown in the snippet below: + +```diff +-