API Reference > ui-core > Common > withOnOutsideClick withOnOutsideClick FunctionConst withOnOutsideClick is a React higher-order component that adds outside click support. withOnOutsideClick<ComponentProps extends { T }>(Component: React.ComponentType<ComponentProps extends { T }>, defaultOnOutsideClick?: (event: MouseEvent) => any, useCapture: boolean = true, usePointerEvents: boolean = true): WithOnOutsideClick Parameter Type Description Component React.ComponentType<ComponentProps extends { T }> defaultOnOutsideClick (event: MouseEvent) => any useCapture boolean usePointerEvents boolean Returns - WithOnOutsideClick Defined in ui/core/src/ui-core/hocs/withOnOutsideClick.tsx Line 22 Last Updated: 13 June, 2024