From 0f34fc2bb2da2522f7c4c04c1460d1f61e78e74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Mon, 22 Jul 2024 17:21:38 +0200 Subject: [PATCH] Add entry to migration guide --- .../migrating-to-v6/migrating-to-v6.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/data/material/migration/migrating-to-v6/migrating-to-v6.md b/docs/data/material/migration/migrating-to-v6/migrating-to-v6.md index ff7944738fbd6d..85fcc27c5ae3fd 100644 --- a/docs/data/material/migration/migrating-to-v6/migrating-to-v6.md +++ b/docs/data/material/migration/migrating-to-v6/migrating-to-v6.md @@ -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 + }) { + ... + } + + +``` + ### Autocomplete #### New reason values added to onInputChange