Menu2Trigger API
API reference docs for the React Menu2Trigger component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import MenuTrigger from '@mui/material/Unstable_Menu2Trigger';Props of the native component are also available.
| Name | Type | Default | Description |
|---|---|---|---|
| children* | element | - | The element that opens the menu. It must forward its props and ref. Set visual props, such as |
| closeDelay | number | 0 | How long to wait before closing the menu that was opened on hover. Specified in milliseconds. |
| delay | number | 100 | How long to wait before the menu may be opened on hover. Specified in milliseconds. |
| disabled | bool | false | Whether the component should ignore user interaction. |
| nativeButton | bool | true | Whether the child renders a native |
| openOnHover | bool | - | Whether the menu should also open when the trigger is hovered. |
ref is forwarded to the root element.Theme default props
You can use MuiMenu2Trigger to change the default props of this component with the theme.
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.