Skip to content

Infinite scroll

Scroll to the bottom to trigger the next page of posts, which are fetched from a remote API and appended seamlessly to the existing list. A spinner item appears at the end while the request is in flight, then is replaced by the incoming posts.

No total item count needs to be known upfront.

The sentinel pattern drives pagination: when the last real item scrolls into the rendered range, the next fetch is triggered automatically.

You can also resize the scrolling container — the items adapt to the available width just as they would in a normal document flow.