Skip to content

[Tabs] Remove deprecated props#48017

Merged
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:remove-deprecated-tabs-props
Mar 18, 2026
Merged

[Tabs] Remove deprecated props#48017
siriwatknp merged 1 commit intomui:masterfrom
siriwatknp:remove-deprecated-tabs-props

Conversation

@siriwatknp
Copy link
Member

Summary

Remove deprecated props from the Tabs component:

  • ScrollButtonComponent — use slots.scrollButtons instead
  • TabIndicatorProps — use slotProps.indicator instead
  • TabScrollButtonProps — use slotProps.scrollButtons instead
  • slots.StartScrollButtonIcon — use slots.startScrollButtonIcon instead
  • slots.EndScrollButtonIcon — use slots.endScrollButtonIcon instead

Breaking change

Users relying on the deprecated props need to migrate to the slots/slotProps API. A codemod is available:

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

Closes part of #47987

Remove ScrollButtonComponent, TabIndicatorProps, TabScrollButtonProps,
and deprecated slots.StartScrollButtonIcon/EndScrollButtonIcon.
@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

mui-bot commented Mar 18, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-204B(-0.04%) ▼-66B(-0.05%)
@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 fcbce1d

@siriwatknp siriwatknp merged commit 3ae11f8 into mui:master Mar 18, 2026
25 checks passed

#### Tabs deprecated props removed

Use the [tabs-props codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#tabs-props) below to migrate the code as described in the following section:
Copy link
Member

Choose a reason for hiding this comment

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

tabs-props codemod isn't documented at: https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod. Also, tabs-props codemod doesn't modify slots.StartScrollButtonIcon and slots.EndScrollButtonIcon slots.

Copy link
Member Author

Choose a reason for hiding this comment

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

will fix it.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants