Skip to content

v22.0.0-beta: Menu Components Overhaul

Pre-release
Pre-release
Compare
Choose a tag to compare
@gnapse gnapse released this 12 Jul 17:00
  • [Feat] Add the ability to open menus programmatically
  • [BREAKING] The MenuItem component now supports generating its content by using new props (label, description, icon, and shortcut) to achieve a more uniform and structured look.
    • The traditional way of using the MenuItem's children 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 those MenuItem elements to use the new props instead.
  • [BREAKING] Introduces new SubMenuItem and SubMenuList, which now must be used in place of MenuButton and MenuList when creating sub-menus.
  • [Feat] Updated menu styles