Infinite scroll component props
The children to render
The component to render when more results are available
The page size to use when loading more results
Optional
Options for the IntersectionObserver. This can be used to adjust the root margin, threshold, etc. For example, to trigger the observer when the user scrolls to the bottom of the page, you can set rootMargin: "100% 0".
rootMargin: "100% 0"
{ rootMargin: "0px", threshold: 0 } Copy
{ rootMargin: "0px", threshold: 0 }
Infinite scroll component props
Param: children
The children to render
Param: loadMoreComponent
The component to render when more results are available
Param: pageSize
The page size to use when loading more results