Infinite Scroll

Navigation

An Intersection Observer-based infinite scroll container with loading state, configurable threshold, and animated default loader.

Loading preview...
Customize
Threshold (px)
200
Has More

Props

PropTypeDefaultDescription
loadMore() => void | Promise<void>Callback to load more items when the sentinel enters view.
hasMorebooleanWhether more items are available to load.
loaderReact.ReactNodeDefaultLoaderCustom loading indicator.
thresholdnumber200Root margin (in px) for triggering the load before reaching the sentinel.
childrenReact.ReactNodeThe scrollable content.
classNamestring''Additional CSS classes.