ClickOutsideOptions: {
    event?: "pointerdown" | "mousedown" | "click";
    ignore?: (Element | null | undefined)[];
}

Options for onClickOutside.

Type declaration

  • Optionalevent?: "pointerdown" | "mousedown" | "click"

    Event used to detect the outside interaction. Defaults to pointerdown.

  • Optionalignore?: (Element | null | undefined)[]

    Additional elements that should be treated as "inside" (e.g. a trigger).