react-intersection-observer
Advanced tools
Comparing version 9.3.4 to 9.3.5
{ | ||
"name": "react-intersection-observer", | ||
"version": "9.3.4", | ||
"version": "9.3.5", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
@@ -11,4 +11,8 @@ "source": "./src/index.tsx", | ||
"exports": { | ||
"./test-utils": "./test-utils.js", | ||
"./test-utils": { | ||
"types": "./test-utils.d.ts", | ||
"default": "./test-utils.js" | ||
}, | ||
".": { | ||
"types": "./index.d.ts", | ||
"require": "./react-intersection-observer.js", | ||
@@ -15,0 +19,0 @@ "default": "./react-intersection-observer.modern.mjs" |
@@ -170,3 +170,3 @@ # react-intersection-observer | ||
| **as** | `string` | `'div'` | Render the wrapping element as this element. Defaults to `div`. | | ||
| **children** | `({ref, inView, entry}) => ReactNode` or `ReactNode` | `undefined` | Children expects a function that receives an object containing the `inView` boolean and a `ref` that should be assigned to the element root. Alternatively pass a plain child, to have the `<InView />` deal with the wrapping element. You will also get the `IntersectionObserverEntry` as `entry, giving you more details. | | ||
| **children** | `({ref, inView, entry}) => ReactNode` or `ReactNode` | `undefined` | Children expects a function that receives an object containing the `inView` boolean and a `ref` that should be assigned to the element root. Alternatively pass a plain child, to have the `<InView />` deal with the wrapping element. You will also get the `IntersectionObserverEntry` as `entry`, giving you more details. | | ||
@@ -173,0 +173,0 @@ ### Intersection Observer v2 🧪 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212211