[material-ui] Deprecate `components` and `componentsProps` props
Part of #40417
Description
Deprecate components and componentsProps props, which are planned for removal in v7.
- These are deprecated in favor of the slot pattern:
slotsandslotProps - If the
slotsorslotPropsprops do not exist:- They must be implemented in the same PR in which the deprecation is added
- They should have the same type as the deprecated prop
- The PR introducing the deprecation must also add:
- A section in the migration guide
- A codemod
Example PR
- https://github.com/mui/material-ui/pull/40777
Contributing
Feel free to take any components that still need to be done or in progress. Please mention this issue in your PR so we can link it in the description and keep it up to date.
Components to migrate
- [x] Alert: #40681
- [x] Autocomplete: #42179
- [ ] AvatarGroup: #42122
- [ ] Backdrop: #42026
- [x] Badge: #41655
- [ ] FilledInput: #42093
- [x] FormControlLabel: #41767
- [ ] Input: #42093
- [ ] InputBase: #42093
- [ ] ListItem #42219
- [ ] Modal
- [ ] OutlinedInput: #42093
- [x] PaginationItem: #41777
- [ ] Popper: #42111
- [x] Slider: #40777
- [x] StepLabel: #41321
- [ ] Tooltip: #42107
Search keywords: deprecation components componentsProps material-ui
Hello, I'd like to take on Backdrop.
Hey @aacevski, assigned! Feel free to let me know if you need any help.
Hello I'd like to take InputBase component
After I added deprecated comment to InputBase the 3 other input components (Input, FilledInput and OutlinedInput) are automatically updated. Seems like we need to prepare 1 PR to update the all 4. Are ok with that or you prefer to prepare 4 PRs for each of them?
Hello I'd like to take Tooltip component
I will take Popper as well
@ChronicusUA id suggest you hold off creating more PR's until your current PRs are reviewed and merged. As it will be difficult for maintainers to manage and review multiple PRs
Hey @ChronicusUA, sorry for not replying earlier. Thanks for working on these. I'll review the PRs now. As @sai6855 suggested, let's work on the current ones before moving on to other components 🙌🏼
This issue has been completed! 🎉
Thanks to everyone who contributed, you've helped Material UI become a more consistent library 😊