Skip to content

[Popper] Remove deprecated props#48020

Merged
siriwatknp merged 4 commits intomui:masterfrom
siriwatknp:remove-deprecated-popper-props
Mar 19, 2026
Merged

[Popper] Remove deprecated props#48020
siriwatknp merged 4 commits intomui:masterfrom
siriwatknp:remove-deprecated-popper-props

Conversation

@siriwatknp
Copy link
Copy Markdown
Member

Summary

Remove the deprecated components and componentsProps props from the Popper component.

Breaking change

The components and componentsProps props have been removed. Use slots and slotProps instead:

 <Popper
-  components={{ Root: CustomRoot }}
-  componentsProps={{ root: { className: 'custom' } }}
+  slots={{ root: CustomRoot }}
+  slotProps={{ root: { className: 'custom' } }}
 />

Use the popper-props codemod for automated migration:

npx @mui/codemod@latest deprecations/popper-props <path>

Changes

  • Removed components and componentsProps from component source, types, and PropTypes
  • Removed testLegacyComponentsProp from conformance tests
  • Added migration guide entry in upgrade-to-v9.md
  • Regenerated API docs via pnpm proptypes && pnpm docs:api

Test plan

  • pnpm prettier passes
  • pnpm eslint passes
  • pnpm typescript passes
  • pnpm test:unit Popper passes (25 tests)

@siriwatknp siriwatknp added breaking change Introduces changes that are not backward compatible. package: material-ui Specific to Material UI. labels Mar 18, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Mar 18, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-60B(-0.01%) ▼-25B(-0.02%)
@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 c11de6c

@siriwatknp siriwatknp changed the title [Popper] Remove deprecated components, componentsProps [Popper] Remove deprecated props Mar 18, 2026
Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>
@zannager zannager added component: Popper The React component. See <Popup> for the latest version. and removed package: material-ui Specific to Material UI. labels Mar 18, 2026
@siriwatknp siriwatknp merged commit cea5a8c into mui:master Mar 19, 2026
25 checks passed
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. component: Popper The React component. See <Popup> for the latest version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants