Skip to content

Commit 7571992

Browse files
authored
docs: update readme
1 parent 048bcb0 commit 7571992

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[![Version Badge][npm-version-svg]][package-url]
44
[![GZipped size][npm-minzip-svg]][bundlephobia-url]
5-
[![Test][test-image]][test-url] [![License][license-image]][license-url]
5+
[![Test][test-image]][test-url]
6+
[![License][license-image]][license-url]
67
[![Downloads][downloads-image]][downloads-url]
78

89
React implementation of the
@@ -166,7 +167,7 @@ The **`<InView />`** component also accepts the following props:
166167

167168
| Name | Type | Default | Description |
168169
| ------------ | ---------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
169-
| **as** | `IntrinsicElement` | `'div'` | Render the wrapping element as this element. Defaults to `div`. If you want to use a custom component, please use the `useInView` hook instead to manage the reference explictly. |
170+
| **as** | `IntrinsicElement` | `'div'` | Render the wrapping element as this element. Defaults to `div`. If you want to use a custom component, please use the `useInView` hook or a render prop instead to manage the reference explictly. |
170171
| **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. |
171172

172173
### Intersection Observer v2 🧪

0 commit comments

Comments
 (0)