Components/InfiniteScroll

InfiniteScroll

Fires an onLoadMore callback when the user scrolls near the bottom.

Installation

Examples

Post feed

Automatically loads more posts on scroll.

user

User 1

Post content #1

user

User 2

Post content #2

user

User 3

Post content #3

user

User 4

Post content #4

user

User 5

Post content #5

Loading more…

API Reference

PropTypeDefaultDescription
onLoadMore*() => void | Promise<void>requiredCalled when more content should load.
hasMore*booleanrequiredWhen false, no more loads are triggered.
loadingbooleanfalseShows the loader slot.
thresholdnumber100px from bottom to trigger load.
loaderReactNodeCustom loading indicator.