InfinitePagination
Loads the next page of an <InfiniteList> on scroll or with a Load more button.
Installation
pnpm dlx shadcn@latest add @chelone/infinite-paginationLoads the next page of an <InfiniteList> on scroll or with a Load more button.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| autoLoad | boolean | — | Load the next page when the end of the list scrolls into view. |
| className | string | — | Classes for the root element. |
| offset | number | — | Pixels before the end of the list at which `autoLoad` fires. |