@shelf/react-outside-click 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ $ yarn add @shelf/react-outside-click
|
|
|
23
23
|
```js
|
|
24
24
|
import { ClickOutsideProvider } from '@shelf/react-outside-click';
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const Component = () => {
|
|
27
27
|
const onOutsideClick = () => {
|
|
28
28
|
console.log('Clicked outside')
|
|
29
29
|
};
|
|
@@ -75,7 +75,7 @@ import { useClickOutside } from '@shelf/react-outside-click';
|
|
|
75
75
|
const Component() {
|
|
76
76
|
const ref = useRef(null)
|
|
77
77
|
|
|
78
|
-
const
|
|
78
|
+
const handleClickOutside = () => {
|
|
79
79
|
console.log('Clicked outside')
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -99,7 +99,7 @@ Type: `function (required)`
|
|
|
99
99
|
|
|
100
100
|
A function that will be called when an outside click is detected.
|
|
101
101
|
|
|
102
|
-
**options:**
|
|
102
|
+
**options:** `(optional)`
|
|
103
103
|
|
|
104
104
|
> **disabled**
|
|
105
105
|
|