Hook which takes a callback and will trigger it whenever someone clicks outside the ref that is returned.
Optional
A ref for the element the user will click outside of.
Generated using TypeDoc
Hook which takes a callback and will trigger it whenever someone clicks outside the ref that is returned.