• Hook to detect clicks outside of specified elements

    Parameters

    • refs: RefObject<HTMLElement>[]

      Array of refs to check if click is outside

    • handler: (() => void)

      Callback to execute when click is detected outside

        • (): void
        • Returns void

    • enabled: boolean = true

      Whether the hook is active (default: true)

    Returns void

Generated using TypeDoc