[ListItem, ListItemText] Remove deprecated props by siriwatknp · Pull Request #48042 · mui/material-ui (original) (raw)

Summary

Remove deprecated props from ListItem and ListItemText components. Remove the @deprecated annotation from ListItemSecondaryAction (the component remains public).

Breaking changes

ListItem:

ListItemText:

Migration

npx @mui/codemod@latest deprecations/list-item-props npx @mui/codemod@latest deprecations/list-item-text-props

Note to reviewers

I decided not to remove the ListItemSecondaryAction component (there was a comment to remove it but I believe that it was there before slots/slotProps were introduced).
To reduce the breaking changes surface, I don't see good reason to remove it because this customization is possible:

<ListItem secondaryAction={} slots={{ secondaryAction: ListItemSecondaryAction }}>