The PositionAnchor to use for the menu. Here's the default value for the anchor:
BELOW_CENTER_ANCHOR
TOP_RIGHT_ANCHOR
TOP_INNER_RIGHT_ANCHOR
Boolean if the menu should close instead of repositioning itself if the browser window is resized.
Boolean if the menu should close if the page is scrolled. The default behavior is to just update the position of the menu relative to the menu button until it can no longer be visible within the viewport.
Boolean if the menu component should not gain focus once it has mounted.
This should really only be set to true
if the enter transition has been
disabled.
Boolean if the toggle element should no longer gain focus when the menu loses visibility.
Note: The toggle element will not gain focus if:
document.activeElement
has moved outside of the menuMenuItem
's action cause the focus to move
alreadydocument.activeElement
is an link (<a href="">
){@inheritDoc CalculateFixedPositionOptions}
An optional aria-label
that should be applied to the Menu
component. If
this is undefined
, an aria-labelledby
will be provided to the Menu
instead linking to the id of the Button
.
Boolean if the page should no longer be scrollable while the menu is visible.
A function that can be used to get the CalculateFixedPositionOptions dynamically.
Generated using TypeDoc
@since 5.0.0