Feature Request: useClickOutside #37
Labels
enhancement
New feature or request
planned
The feature/enhancement has been approved and is planned to be implemented.
Describe the feature in detail (code, mocks, or screenshots encouraged)
A utility function which accepts a reference to an instance of
HtmlElement
and a callback function and invokes a callback function when the user clicks outside of the givenHtmlElement
instance.Here's how I imagine it would look like in action:
Alternatively, it could create a reference inside of
useClickOutside
and return it to the component to be attached.What type of pull request would this be?
New Feature
Provide relevant links or additional information.
No response
The text was updated successfully, but these errors were encountered: