Menubar / navigation menu with single-level submenus rendered in the top layer. Compose with <MenuItem> for leaf items and <MenuSubmenu> for items that open a flyout. The enhancer wires roving tabindex, orientation-aware arrow navigation, typeahead, and submenu toggling; the open submenu is the component's value (from <MenuSubmenu value>, defaulting to the index).

<Menu orientation="horizontal">
<MenuItem href="/">Home</MenuItem>
<MenuSubmenu label="Resources" value="resources">
<MenuItem href="/docs">Docs</MenuItem>
</MenuSubmenu>
</Menu>

Properties

$$typeof: symbol
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.