Skip to content
Entangle UI v0.13.0

UseIntersectionObserverOptions

Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:3

optional enabled?: boolean

Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:11

Disable the observer without unmounting the component.

true

optional root?: Element | null

Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:5

Root element. null (default) targets the viewport.


optional rootMargin?: string

Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:7

Margin around the root, e.g. "0px 0px 200px 0px".


optional threshold?: number | number[]

Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:9

Single threshold or an array of thresholds.