MenuPreviewSubmenuRoot API
API reference docs for the React MenuPreviewSubmenuRoot component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import MenuPreviewSubmenuRoot from '@mui/material/MenuPreviewSubmenuRoot';| Name | Type | Default | Description |
|---|---|---|---|
| children | node | - | The content of the submenu. |
| closeParentOnEsc | bool | false | When in a submenu, determines whether pressing the Escape key closes the entire menu. |
| defaultOpen | bool | false | Whether the submenu is initially open. |
| disabled | bool | false | Whether the component should ignore user interaction. |
| highlightItemOnHover | bool | true | Whether moving the pointer over items should highlight them. |
| loopFocus | bool | true | Whether to loop keyboard focus back to the first item. |
| onOpenChange | func | - | Event handler called when the submenu is opened or closed. |
| onOpenChangeComplete | func | - | Event handler called after any animations complete when the submenu is opened or closed. |
| open | bool | - | Whether the submenu is currently open. |
| orientation | 'horizontal' | 'vertical' | 'vertical' | The visual orientation of the submenu. |
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.