conorhastings

conorhastings/react-close-on-escape

higher order component to close other react component on press of escape key (or fire whatever function you want but probably it should close)

JavaScript
14
4
No license

This is a simple React Higher-Order Component (HOC) that closes or triggers a function when the Escape key is pressed. It's designed for React developers who need to add keyboard-triggered closing functionality to their components, such as modals, dropdowns, or popovers.

Total donated
Undistributed
Share with your subscribers: