Infinite Scroll

Simple infinite scroll component. You have fully control over the loading spinner and IntersectionObserver API.

Installation

1

Paste this code into your project

2

Update import paths as needed

Properties

PropertyTypeDefault
*isLoading
boolean
*hasMore
boolean
*next
() => unknown
threshold
number
1
root
number
null
rootMargin
string
0px
reverse
boolean
false
children
ReactNode
undefined

Spectrum Pro

Stop building from scratch.
Ship faster with Pro templates.

Premium Next.js templates built on Spectrum UI. Dark. Animated. Production-ready.