close
Skip to content

[PaginationItem] Remove deprecated props#48038

Merged
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:remove-deprecated-pagination-item-props
Mar 20, 2026
Merged

[PaginationItem] Remove deprecated props#48038
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:remove-deprecated-pagination-item-props

Conversation

@siriwatknp
Copy link
Copy Markdown
Member

Summary

Remove the deprecated components prop from PaginationItem. Users should use the slots prop instead.

Breaking change

The components prop has been removed. Use slots instead:

 <PaginationItem
-  components={{
-    first: MyFirstIcon,
-    last: MyLastIcon,
-    previous: MyPreviousIcon,
-    next: MyNextIcon,
-  }}
+  slots={{
+    first: MyFirstIcon,
+    last: MyLastIcon,
+    previous: MyPreviousIcon,
+    next: MyNextIcon,
+  }}
 />

A codemod is available:

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

Checklist

  • Prop removed from component source and types
  • PropTypes removed
  • Tests updated
  • pnpm proptypes && pnpm docs:api run
  • Migration guide updated in upgrade-to-v9.md
  • pnpm prettier && pnpm eslint && pnpm typescript pass
  • Unit tests pass

Closes #47987 (partial)

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

mui-bot commented Mar 19, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-111B(-0.02%) ▼-41B(-0.03%)
@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 2fc3390

@siriwatknp siriwatknp marked this pull request as draft March 19, 2026 09:00
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 19, 2026
@siriwatknp siriwatknp force-pushed the remove-deprecated-pagination-item-props branch from 73acff6 to 2fc3390 Compare March 19, 2026 11:43
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Mar 19, 2026
@zannager zannager added the scope: pagination Changes related to the pagination. label Mar 19, 2026
@siriwatknp siriwatknp marked this pull request as ready for review March 20, 2026 02:46
@siriwatknp siriwatknp merged commit a889c5b into mui:master Mar 20, 2026
24 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. package: material-ui Specific to Material UI. scope: pagination Changes related to the pagination.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[material-ui] Remove deprecated props from all components

4 participants