InfiniteScroll
Fires an onLoadMore callback when the user scrolls near the bottom.
Installation
Examples
Post feed
Automatically loads more posts on scroll.
User 1
Post content #1…
User 2
Post content #2…
User 3
Post content #3…
User 4
Post content #4…
User 5
Post content #5…
Loading more…
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| onLoadMore* | () => void | Promise<void> | required | Called when more content should load. |
| hasMore* | boolean | required | When false, no more loads are triggered. |
| loading | boolean | false | Shows the loader slot. |
| threshold | number | 100 | px from bottom to trigger load. |
| loader | ReactNode | — | Custom loading indicator. |