This will be set to true only while the menu is visible.
This will always be set to "menu".
This will be set to ${baseId}-toggle and is used for providing an
accessible label to the menu if the BaseMenuHookOptions.menuLabel
was not provided.
A click handler that will toggle the visibility of the menu.
The event handler will allow the menu to become visible by with ArrowUp
or ArrowDown for horizontal menus and ArrowLeft or ArrowRight for
vertical menus. This will also allow the focus to move between menus within
a MenuBar with the ArrowLeft and ArrowRight keys.
The event handler will allow a Menu within a MenuBar to gain
visibility.
This handler just cancels the hoverTimeout from the MenuBar.
Generated using TypeDoc
Props that should be passed to a
ButtonorMenuItemcomponent to toggle the visibility of a Menu.@since 5.0.0