Interface: UseIntersectionObserverResult<T>
Defined in: use-intersection-observer.ts:52
The object returned by useIntersectionObserver.
Type Parameters
T
T extends Element
Properties
entry
entry:
IntersectionObserverEntry|undefined
Defined in: use-intersection-observer.ts:62
The most recent IntersectionObserverEntry for the attached element, or
undefined before the first notification, on the server, and while no
element is attached.
isIntersecting
isIntersecting:
boolean
Defined in: use-intersection-observer.ts:56
Whether the element currently intersects the root.
ref
ref: (
element) =>void
Defined in: use-intersection-observer.ts:54
Attach this to the element you want to observe, as its ref.
Parameters
element
T | null
Returns
void