---
title: Pagination
description: >-
The [Storefront API uses
cursors](https://shopify.dev/docs/api/usage/pagination-graphql) to paginate
through lists of data and the `` component makes it easy to
paginate data from the Storefront API. It is important for pagination state to
be maintained in the URL, so that the user can navigate to a product and
return back to the same scrolled position in a list. It is also important that
the list state is shareable via URL. The `` component provides a
render prop with properties to load more elements into your list.
api_version: 2024-10
api_name: hydrogen
source_url:
html: 'https://shopify.dev/docs/api/hydrogen/2024-10/components/pagination'
md: 'https://shopify.dev/docs/api/hydrogen/2024-10/components/pagination.md'
---
# Pagination
The [Storefront API uses cursors](https://shopify.dev/docs/api/usage/pagination-graphql) to paginate through lists of data and the `` component makes it easy to paginate data from the Storefront API. It is important for pagination state to be maintained in the URL, so that the user can navigate to a product and return back to the same scrolled position in a list. It is also important that the list state is shareable via URL. The `` component provides a render prop with properties to load more elements into your list.
## Props
* children
PaginationRenderProp\
required
A render prop that includes pagination data and helpers.
* connection
Connection\
required
The response from `storefront.query` for a paginated request. Make sure the query is passed pagination variables and that the query has `pageInfo` with `hasPreviousPage`, `hasNextpage`, `startCursor`, and `endCursor` defined.
* namespace
string
A namespace for the pagination component to avoid URL param conflicts when using multiple `Pagination` components on a single page.
### PaginationRenderProp
* contextTypes
```ts
ValidationMap | undefined
```
* defaultProps
```ts
Partial