Interface IUseIntersectionObserverProps

Hierarchy

  • IUseIntersectionObserverProps

Properties

isDisabled?: boolean

If true, disables the intersection observer.

Default

false
onEntry: ((entry) => void)

Type declaration

    • (entry): void
    • Observer callback triggered when the observed entry is intersected

      Parameters

      • entry: IntersectionObserverEntry

      Returns void

ref: THookEventElement<Element>

Observable element

root?: null | Document | Element

The root element used for the intersection calculation.

Default

null
rootMargin?: string

The margin around the root.

Default

'0px 0px 0px 0px'
threshold?: number | number[]

The threshold(s) at which to trigger the callback.

Default

0