v22.0.0-beta: Menu Components Overhaul
Pre-release
Pre-release
- [Feat] Add the ability to open menus programmatically
- [BREAKING] The
MenuItem
component now supports generating its content by using new props (label
,description
,icon
, andshortcut
) to achieve a more uniform and structured look.- The traditional way of using the
MenuItem
'schildren
prop remains available if needed, to achieve custom menu item layouts. - Although, the layout inside a
MenuItem
is broken for those that were using it with an icon and text, so it is required migrating thoseMenuItem
elements to use the new props instead.
- The traditional way of using the
- [BREAKING] Introduces new
SubMenuItem
andSubMenuList
, which now must be used in place ofMenuButton
andMenuList
when creating sub-menus. - [Feat] Updated menu styles