Skip to content

Commit

Permalink
[material-ui][ListItem] Add missing diffs in migration guide (#44638)
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 authored Dec 3, 2024
1 parent 9166695 commit 675561d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1247,10 +1247,24 @@ The ListItem's `componentsProps` prop was deprecated in favor of `slotProps`:

The ListItem's `ContainerComponent` prop was deprecated in favor of `slots.root` or `component` instead.

```diff
<ListItem
- ContainerComponent={CustomContainer}
+ slots={{ root: CustomContainer }}
/>
```

### ContainerProps

The ListItem's `ContainerProps` prop was deprecated in favor of `slotProps.root` instead.

```diff
<ListItem
- ContainerProps={{ id: 'container-id' }}
+ slotProps={{ root: { id: 'container-id' } }}
/>
```

## ListItemSecondaryAction

### Deprecated component
Expand Down

0 comments on commit 675561d

Please sign in to comment.