UseIntersectionObserverOptions
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:3
Properties
Section titled “Properties”enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:11
Disable the observer without unmounting the component.
Default
Section titled “Default”true
optionalroot?:Element|null
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:5
Root element. null (default) targets the viewport.
rootMargin?
Section titled “rootMargin?”
optionalrootMargin?:string
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:7
Margin around the root, e.g. "0px 0px 200px 0px".
threshold?
Section titled “threshold?”
optionalthreshold?:number|number[]
Defined in: src/hooks/useIntersectionObserver/useIntersectionObserver.types.ts:9
Single threshold or an array of thresholds.