You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**as**|`string`|| false | Render the wrapping element as this element. Defaults to `div`. |
167
-
|**children**|`Function`, `ReactNode`|| true | Children expects a function that receives an object contain an `inView` boolean and `ref` that should be assigned to the element root. Alternately pass a plain child, to have the `<Observer />` deal with the wrapping element. You will also get the `IntersectionObserverEntry` as `intersection, giving you more details. |
168
-
|**onChange**|`(inView, entry) => void`|| false | Call this function whenever the in view state changes |
140
+
| Name | Type | Default | Required | Description |
|**as**|`string`|| false | Render the wrapping element as this element. Defaults to `div`. |
143
+
|**children**|`Function`, `ReactNode`|| true | Children expects a function that receives an object contain an `inView` boolean and `ref` that should be assigned to the element root. Alternately pass a plain child, to have the `<Observer />` deal with the wrapping element. You will also get the `IntersectionObserverEntry` as `entry, giving you more details. |
144
+
|**onChange**|`(inView, entry) => void`|| false | Call this function whenever the in view state changes |
0 commit comments