withOnOutsideClick FunctionConst

withOnOutsideClick is a React higher-order component that adds outside click support.

withOnOutsideClick<ComponentProps extends __type>(Component: React.ComponentType<ComponentProps extends __type>, defaultOnOutsideClick?: (event: MouseEvent) => any, useCapture: boolean = true): WithOnOutsideClick

Parameter Type Description
Component React.ComponentType<ComponentProps extends __type>  
defaultOnOutsideClick (event: MouseEvent) => any  
useCapture boolean  

Defined in

Last Updated: 20 September, 2019