Menu
Dropdown menus are used to display a list of quick actions in a floating surface.
- Useful links:
StrataKit MUI modifications
Section titled “StrataKit MUI modifications”- Restyled using StrataKit’s visual language.
- Removed
role="dialog"semantics from thepaperslot. - Added fallback mechanism for automatically labelling the
listslot using the trigger element (anchorEl). - Includes full
forced-colorssupport. disableScrollLockis used to prevent scroll locking when the menu is open.
Examples
Section titled “Examples”Pass the dense prop through slotProps.list to make the Menu smaller. This is useful when space is limited, or when the Menu is triggered by a small button.
The dense prop is also available via MenuList.
Selectable
Section titled “Selectable”To make MenuItems selectable, override the default role to either:
role="menuitemradio"when only one item within a group is selectablerole="menuitemcheckbox"when the items are individually selectable.
With the appropriate role in place, use aria-checked="true" and the selected prop to mark the selected item(s).