use-on-click-away (npm): I'ts a React custom hook that catches clicks outside of the element it is applied to.
Keywords: react|hook|click|away|click-away|typescript