Skip to content

[badge] Remove deprecated props#47993

Open
silviuaavram wants to merge 2 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-5
Open

[badge] Remove deprecated props#47993
silviuaavram wants to merge 2 commits intomui:masterfrom
silviuaavram:chore/remove-deprecated-props-5

Conversation

@silviuaavram
Copy link
Member

@silviuaavram silviuaavram commented Mar 16, 2026

Copilot AI review requested due to automatic review settings March 16, 2026 14:22
@silviuaavram silviuaavram added breaking change Introduces changes that are not backward compatible. scope: badge Changes related to the badge. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. v9.x labels Mar 16, 2026
@mui-bot
Copy link

mui-bot commented Mar 16, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-131B(-0.03%) ▼-58B(-0.04%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 6ed6c89

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the deprecated components / componentsProps API from Material UI’s Badge and updates the surrounding type definitions, tests, and docs to reflect the v9-only slots / slotProps API.

Changes:

  • Removed components and componentsProps handling from packages/mui-material/src/Badge/Badge.js.
  • Deleted deprecated prop typings and PropTypes for components / componentsProps in Badge.d.ts and Badge.js.
  • Updated tests and API documentation JSON to only reference slots / slotProps, and added an upgrade note in the v9 migration guide.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/mui-material/src/Badge/Badge.js Removes deprecated components / componentsProps support and PropTypes entries.
packages/mui-material/src/Badge/Badge.d.ts Removes deprecated components / componentsProps from TypeScript surface area.
packages/mui-material/src/Badge/Badge.test.js Drops deprecated-prop coverage, keeps slots / slotProps coverage.
docs/translations/api-docs/badge/badge.json Removes deprecated props from translated API docs.
docs/pages/material-ui/api/badge.json Removes deprecated props from API docs payload.
docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md Adds v9 migration note and codemod reference for Badge prop removals.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.


```diff
<Badge
- components={{ root: CustomRoot, badge: CustomBadge }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. scope: badge Changes related to the badge. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. v9.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants