@builtwithjavascript/use-click-outside
v1.0.1
Published
Exposes hook useClickOutside to make it easier to listen for clicks outside of an element. Useful for modal or dropdown.
Downloads
2
Maintainers
Readme
use-click-outside
Exposes hook useClickOutside to make it easier to listen for clicks outside of an element. Useful for modals, dropdowns, etc.
Dependencies
@builtwithjavascript/use-event-listener
Credits
Code is inspired by @vueuse npm package and used accordingly to the MIT license: https://github.com/vueuse/vueuse/blob/main/packages/core/onClickOutside/index.ts