MenuProps
Properties
A ref for imperative actions. It currently only supports updatePosition() action.
This is the point on the anchor where the popover's anchorEl
will attach to. This is not used when the anchorReference is 'anchorPosition'.
This is the position that may be used to set the position of the popover. The coordinates are relative to the application's client area.
This determines which anchor prop to refer to when setting the position of the popover.
If true
(Default) will focus the [role="menu"]
if no focusable child is found. Disabled children are not focusable. If you set this prop to false
focus will be placed on the parent modal container. This has severe accessibility implications and should only be considered if you manage focus otherwise.
A backdrop component. This prop enables custom backdrop rendering.
Props applied to the /material-ui/api/backdrop/ element.
Override or extend the styles applied to the component.
When set to true the Modal waits until a nested Transition is completed before closing.
The components used for each slot inside.
The extra props for the slot components. You can override the existing props or add new ones.
If true
, the modal will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any modal children that have the disableAutoFocus
prop.
When opening the menu will not focus the active item but the [role="menu"]
unless autoFocus
is also set to false
. Not using the default means not following WAI-ARIA authoring practices. Please be considerate about possible accessibility implications.
If true
, the modal will not prevent focus from leaving the modal while open.
If true
, hitting escape will not fire the onClose
callback.
The children
will be under the DOM hierarchy of the parent component.
If true
, the modal will not restore focus to previously focused element once modal is hidden or unmounted.
Disable the scroll lock behavior.
If true
, the backdrop is not rendered.
Always keep the children in the DOM. This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Modal.
Specifies how close to the edge of the window the popover can appear. If null, the popover will not be constrained by the window.
Props applied to the /material-ui/api/menu-list/ element.
Callback fired when the backdrop is clicked.
A function called when a transition enters.
A function called when a transition has exited.
Props applied to the /material-ui/api/paper/ element.
classes
prop applied to the /material-ui/api/popover/ element.
The extra props for the slot components. You can override the existing props or add new ones.
The components used for each slot inside.
This is the point on the popover which will attach to the anchor's origin.
The component used for the transition. /material-ui/transitions/#transitioncomponent-prop to learn more about the requirements for this component.
The length of the transition in ms
, or 'auto'
Props applied to the transition element. By default, the element is based on this Transition
component.
The variant to use. Use menu
to prevent selected items from impacting the initial focus.