mirror of
https://github.com/streamich/react-use.git
synced 2026-01-25 14:17:16 +00:00
docs: add useClickAway reference
This commit is contained in:
parent
f8c6252b44
commit
f5e4cf6fe1
@ -24,3 +24,11 @@ const Demo = () => {
|
||||
);
|
||||
};
|
||||
```
|
||||
|
||||
## Reference
|
||||
|
||||
```js
|
||||
useClickAway(ref, onMouseEvent)
|
||||
useClickAway(ref, onMouseEvent, ['click'])
|
||||
useClickAway(ref, onMouseEvent, ['mousedown', 'touchstart'])
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user