InfinitePagination

Loads the next page of an <InfiniteList> on scroll or with a Load more button.

Installation

pnpm dlx shadcn@latest add @chelone/infinite-pagination

Loads the next page of an <InfiniteList> on scroll or with a Load more button.

Props

PropTypeDefaultDescription
autoLoadboolean—Load the next page when the end of the list scrolls into view.
classNamestring—Classes for the root element.
offsetnumber—Pixels before the end of the list at which `autoLoad` fires.