Skip to content

Commit

Permalink
migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Whorlow committed Mar 19, 2024
1 parent fb2c29b commit 0e1dbcf
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -905,3 +905,22 @@ The Slider's `componentsProps` was deprecated in favor of `slotProps`:
+ slotProps={{ track: { testid: 'test-id' } }}
/>
```

## Backdrop

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

```bash
npx @mui/codemod@latest deprecations/backdrop-props <path>
```

### components

The backdrop's `TransitionComponent` was deprecated in favor of `slots`:

```diff
<Slider
- TransitionComponent={CustomTransition}
+ slots={{ transition: CustomTransition }}
/>
```

0 comments on commit 0e1dbcf

Please sign in to comment.