A hook that can manage click outside of target element(s).
Basic usage of useClickAway hook.
| Property | Description | Type | Default | 
|---|---|---|---|
| onClickAway | Trigger Function for ClickAway | (event) => void | - | 
| target | DOM elements or Ref, support array | Target | Target[] | - | 
| eventName | The event to be listened, optional | string | click |