Members
# constant useClickOutside
It returns a function that checks if the click is outside the component and a function that adds an event listener to the document
# constant useForm
Custom hook to manage form state and validation
# constant useKeypress
"When the key is pressed, call the handler function."
The function add an event listener to the document. When the keydown event is fired, the function checks if the isOpenStateInParent is true. If it is, the function checks if the event.key is equal to the key argument. If it is, the handler function is called
# constant useTrapFocus
"When the modal is open, listen for the tab key and prevent the user from tabbing out of the modal."
The function add a keydown event listener to the document. The event listener is only added when the modal is open