DEV Community

Cover image for Show page no. in UI in Cursor pagination or infinite scroll
Sahil kashyap
Sahil kashyap

Posted on

Show page no. in UI in Cursor pagination or infinite scroll

On scroll page number are added
I wanted to show stripe subscriptions details to my admin.

Stripe uses cursor based pagination. So no page available.

Load more was nice but i wanted an "on scroll add a page number(scroll 1,scroll 2)"

So admin can check how many scroll happened,and easliy switch between scroll 1 and scroll 2 or more,

also filter via customer id and plan type(I used per unit and tiered plan)

Here's a codepen of how the UI looks: Link

Here's gist of how i used with stripe subscription pagination php laravel: Gist

Top comments (0)

Sentry image

👀 Watch Us Break (and Fix) a Laravel App with Sentry

In this on-demand workshop, we push a Laravel + React app to the edge—then show exactly how to debug it using Sentry. From error tracking to Session Replays and full-stack performance monitoring, it's all here. Bonus: watch AI bots pitch in to clean up the mess.

🎥 Watch now + follow along

👋 Kindness is contagious

Dive into this insightful article, celebrated by the caring DEV Community. Programmers from all walks of life are invited to share and expand our collective wisdom.

A simple thank-you can make someone’s day—drop your kudos in the comments!

On DEV, spreading knowledge paves the way and strengthens our community ties. If this piece helped you, a brief note of appreciation to the author truly counts.

Let’s Go!