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