[Tabs] Remove deprecated props by siriwatknp · Pull Request #48017 · mui/material-ui (original) (raw)
Conversation
Summary
Remove deprecated props from the Tabs component:
ScrollButtonComponent— useslots.scrollButtonsinsteadTabIndicatorProps— useslotProps.indicatorinsteadTabScrollButtonProps— useslotProps.scrollButtonsinsteadslots.StartScrollButtonIcon— useslots.startScrollButtonIconinsteadslots.EndScrollButtonIcon— useslots.endScrollButtonIconinstead
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
Closes part of #47987
Remove ScrollButtonComponent, TabIndicatorProps, TabScrollButtonProps, and deprecated slots.StartScrollButtonIcon/EndScrollButtonIcon.
| #### 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: |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})