Skip to content

Commit

Permalink
Add entry to migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Jul 22, 2024
1 parent 5b67586 commit 0f34fc2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/data/material/migration/migrating-to-v6/migrating-to-v6.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ This results in a reduction of the `@mui/material` package size by 2.5MB or 25%
Instead, using ESM-based CDNs such as [esm.sh](https://esm.sh/) is recommended.
For alternative installation methods, refer to the [CDN documentation](/material-ui/getting-started/installation/#cdn).

### Accordion

#### children is required in slots.transition

The children prop in components passed to either `slots.transition` or `TransitionComponent` props in the Accordion component must be required in TypeScript.

```diff
function CustomTransition(props: {
- children?: React.ReactElement
+ children: React.ReactElement
}) {
...
}

<Accordion slots={{ transition: CustomTransition }} />
```

### Autocomplete

#### New reason values added to onInputChange
Expand Down

0 comments on commit 0f34fc2

Please sign in to comment.