ModalProps
Properties
When set to true the Modal waits until a nested Transition is completed before closing.
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.
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.
Callback fired when the backdrop is clicked.
A function called when a transition enters.
A function called when a transition has exited.
The props used for each slot inside the Modal.
The components used for each slot inside the Modal. Either a string to use a HTML element or a component.