Function useOnOutsideClick

  • Hook which takes a callback and will trigger it whenever someone clicks outside the ref that is returned.

    Parameters

    • callback: Callback<Event>
    • Optional options: Options

    Returns Return

    A ref for the element the user will click outside of.

    Export

Generated using TypeDoc