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

Last Updated: 11 June, 2024