Pagination
@gallerykit/pagination
@gallerykit/pagination ships three drop-in pagination components: <InfiniteScroll>, <LoadMoreButton>, and <PageButtons>. They emit the same callback shape, so swapping between modes is a one-line change.
- Stability: experimental
- Peer dependencies:
react,react-dom - Dependencies:
@gallerykit/core
Install
pnpm add @gallerykit/paginationQuick example
import { InfiniteScroll, LoadMoreButton } from "@gallerykit/pagination";
<InfiniteScroll hasMore={page < total} onLoadMore={() => setPage((p) => p + 1)} />See Getting Started for the full walkthrough and API for the public exports.