isOpen | boolean | — | Whether the overlay is currently open. |
onClose | () => void | — | Handler that is called when the overlay should close. |
isDismissable | boolean | false | Whether to close the overlay when the user interacts outside it. |
shouldCloseOnBlur | boolean | — | Whether the overlay should close when focus is lost or moves outside it. |
isKeyboardDismissDisabled | boolean | false | Whether pressing the escape key to close the overlay should be disabled. |
shouldCloseOnInteractOutside | (
(element: HTMLElement
)) => boolean | — | When user interacts with the argument element outside of the overlay ref,
return true if onClose should be called. This gives you a chance to filter
out interaction with elements that should not dismiss the overlay.
By default, onClose will always be called on interaction outside the overlay ref. |