Skip to content

v6.0.0-rc.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@aarongarciah aarongarciah released this 22 Aug 08:23
55bea65

A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:

  • ⚡ Rendering performance improvements

@mui/material@6.0.0-rc.0

Breaking changes

  • [Box] Remove component from BoxOwnProps (#43384) @DiegoAndai

    The component prop has been removed from the BoxOwnProps as it is already included in the Box type.
    This might affect your code if you are using the styled function with the Box component.
    If this is the case, use a div element instead of Box:

    -const StyledBox = styled(Box)`
    +const StyledDiv = styled('div')`
       color: white;
     `;

    This yields the same end result.
    If this doesn't work for you, you can also cast the styled returned value to typeof Box:

     const StyledBox = styled(Box)`
       color: white;
    -`;
    +` as typeof Box;

Changes

@mui/codemod@6.0.0-rc.0

Docs

Core

All contributors of this release in alphabetical order: @aarongarciah, @DiegoAndai, @Janpot, @Jay-Karia, @k-rajat19, @oliviertassinari, @rluzists1, @romgrk, @sai6855, @siriwatknp, @Vxee, @ZeeshanTamboli