Skip to main content

useClickOutside

Callable

  • useClickOutside(ref: RefObject<HTMLElement>, handler: (event: MouseEvent | TouchEvent) => void): void

  • Parameters

    • ref: RefObject<HTMLElement>
    • handler: (event: MouseEvent | TouchEvent) => void

      Returns void