Track interactions or focus outside an element
Used in components like Dialogs and Popovers so they can close when a user clicks outside them.
Used in components like Dialogs and Popovers so they can close when a user clicks outside them.
Directive for listening to MouseLeave, MouseDown, TouchStart outside of a HtmlElement - listeners can be toggled on/off individually with input bindings
The useClickOutside
hook is designed to detect and handle clicks outside of a specified element or set of elements. This is particularly useful for closing modal windows, dropdowns, and other components when a user interacts outside of them.