|—||Whether the overlay is currently open.|
() => void
|—||Handler that is called when the overlay should close.|
|Whether to close the overlay when the user interacts outside it.|
|—||Whether the overlay should close when focus is lost or moves outside it.|
|Whether pressing the escape key to close the overlay should be disabled.|
)) => 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.