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

Last Updated: 13 June, 2024