Skip to content

v5.11.11

Compare
Choose a tag to compare
@mnajdova mnajdova released this 28 Feb 10:12
· 4623 commits to master since this release
58df7f1

Feb 28, 2023

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

  • 📚 added API documentation for the slots in MUI Base and Joy UI by @hbjORbj, for e.g. SliderUnstyled API
  • other 🐛 bug fixes and 📚 documentation improvements.

@mui/[email protected]

@mui/[email protected]

Breaking changes

  • ​[base] Remove classes prop from the Base components that have it (#36157) @hbjORbj
    These are the components affected by this change: ModalUnstyled, SliderUnstyled, TablePaginationUnstyled and TablePaginationActionsUnstyled.
    You can replace the classes prop by providing the class name prop directly to the prop via slotProps. Below is an example of how the migration should look like:

     <TablePaginationUnstyled
    -   classes={{ toolbar: 'toolbar-classname', menuItem: 'menuItem-classname' }}
    +   slotProps={{ toolbar: { className: 'toolbar-classname' }, menuItem: { className: 'menuItem-classname'}}}
     />
  • ​[base] Move hooks to their own directories (#36235) @hbjORbj
    Base hooks (e.g., useSelect) are no longer exported from {Component}Unstyled directories and instead they have their own directories.
    Below is an example of how the migration should look like:

    -import { useBadge } from '@mui/base/BadgeUnstyled';
    +import useBadge from '@mui/base/useBadge';

    You can use this codemod to help with the migration.

Changes

@mui/[email protected]

@mui/[email protected]

Docs

Core

All contributors of this release in alphabetical order: @hbjORbj, @HeVictor, @ivp-dev, @jrparish, @Juneezee, @LukasTy, @MBilalShafi, @michaldudak, @mnajdova, @oliviertassinari, @ossan-engineer, @sai6855, @siriwatknp, @Vivek-Prajapatii, @ZeeshanTamboli