ClickAwayListener

ClickAwayListener

Listen for click events that are triggered outside of the component children.

Props

Name Type Default Description
children * node
mouseEvent enum: 'onClick' |
 'onMouseDown' |
 'onMouseUp' |
 false
'onMouseUp'
onClickAway * func
touchEvent enum: 'onTouchStart' |
 'onTouchEnd' |
 false
'onTouchEnd'

Any other properties supplied will be spread to the root element.

Inheritance

The properties of the EventListener component, from react-event-listener, are also available.