Action to click outside

Version
  • 1.0.0

Example

<div use:clickOut={[() => console.log('clickOut), document.querySelector('.exclude')]]}>