[backdrop] Remove deprecated props by silviuaavram · Pull Request #47991 · mui/material-ui (original) (raw)
Pull request overview
This PR removes the deprecated components, componentsProps, and TransitionComponent props from the Backdrop component as part of the v9 migration. These props were previously deprecated in favor of the slots and slotProps API.
Changes:
- Removed deprecated
components,componentsProps, andTransitionComponentprops from the Backdrop component implementation, types, and PropTypes. - Updated the
BackdropRootPropstype to directly express its type rather than deriving from the removedcomponentsProps. - Added migration documentation with codemod instructions for upgrading from deprecated props.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/mui-material/src/Backdrop/Backdrop.js | Removed deprecated props from destructuring, backward-compat slot logic, and PropTypes |
| packages/mui-material/src/Backdrop/Backdrop.d.ts | Removed deprecated type definitions and updated BackdropRootProps type |
| docs/translations/api-docs/backdrop/backdrop.json | Removed translation entries for deprecated props |
| docs/pages/material-ui/api/backdrop.json | Removed API doc entries for deprecated props |
| docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md | Added migration guide section for Backdrop deprecated props removal |