--- url: "https://design-system.service.gov.uk/components/pagination/" titulek: "Pagination – GOV.UK Design System" h1: "Pagination" popis: "Help users navigate collections of numbered pages like search results" jazyk: "en" kanonicka: "https://design-system.service.gov.uk/components/pagination/" drobecky: ["Home", "Components"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 01:21:51" znaku: 8962 slov: 1398 kodovani: "utf-8" sha256: "b61a54747dc4cb97e0f99b29561645f1fe058e1a29ddb248f03f9eab29ad4236" --- # Pagination Help users navigate forwards and backwards through a series of pages. For example, search results or guidance that’s divided into multiple website pages. ## When to use this component Consider using pagination when: - showing all the content on a single page makes the page take too long to load - most users will only need the content on the first page or first few pages ## When not to use this component Only break up content onto separate pages if it improves the performance or usability of your service. Avoid using the ‘infinite scroll’ technique to automatically load content when the user approaches the bottom of the page. This causes problems for keyboard users. Do not use this Pagination component for linear journeys – for example, where you’re asking the user to complete a form. Instead, use the [Button component](/components/button/) (usually a ‘Continue’ button) to let the user move to the next page – and a [Back link component](/components/back-link/) to let them move to the previous page. ## How it works Add the pagination component after the content on each page that you’re paginating. [View an example of Pagination in a standard GOV.UK page template](/components/pagination/in-page/). Do not show pagination if there’s only one page of content. Redirect users to the first page if they enter a URL of a page that no longer exists. ## For navigating between content pages Use the ‘block’ style of pagination to let users navigate through related content that has been split across multiple pages. Stack the links vertically, so they’re more obvious to screen magnifier users when they’re zoomed in. You can use link labels to give context on what the neighbouring pages are about. - HTML - Nunjucks HTML ``` ``` Nunjucks Nunjucks macro options Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text. Some options are required for the macro to work; these are marked as “Required” in the option description. Deprecated options are marked as “Deprecated”. If you’re using Nunjucks macros in production with “html” options, or ones ending with “html”, you must sanitise the HTML to protect against [cross-site scripting exploits](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Primary options array The items within the pagination component. See macro options for items. object A link to the previous page, if there is a previous page. See macro options for previous. object A link to the next page, if there is a next page. See macro options for next. string The label for the navigation landmark that wraps the pagination. Defaults to `"Pagination"`. string The classes you want to add to the pagination `nav` parent. object The HTML attributes (for example, data attributes) you want to add to the pagination `nav` parent. Options for `items` array objects string The pagination item text – usually a page number. Required unless the item is an ellipsis. string The visually hidden label for the pagination item, which will be applied to an `aria-label` and announced by screen readers on the pagination item link. Should include page number. Defaults to, for example “Page 1”. string The link’s URL. Required unless the item is an ellipsis. boolean Set to `true` to indicate the current page the user is on. boolean Use this option if you want to specify an ellipsis at a given point between numbers. If you set this option as `true`, any other options for the item are ignored. object The HTML attributes (for example, data attributes) you want to add to the anchor. Options for `previous` object string The text content of the link to the previous page. Defaults to `"Previous page"`, with ‘page’ being visually hidden. If `html` is provided, the `text` option will be ignored. string The HTML content of the link to the previous page. Defaults to `"Previous page"`, with ‘page’ being visually hidden. If `html` is provided, the `text` option will be ignored. string The optional label that goes underneath the link to the previous page, providing further context for the user about where the link goes. string **Required.** The previous page’s URL. object The HTML attributes (for example, data attributes) you want to add to the anchor. Options for `next` object string The text content of the link to the next page. Defaults to `"Next page"`, with ‘page’ being visually hidden. If `html` is provided, the `text` option will be ignored. string The HTML content of the link to the next page. Defaults to `"Next page"`, with ‘page’ being visually hidden. If `html` is provided, the `text` option will be ignored. string The optional label that goes underneath the link to the next page, providing further context for the user about where the link goes. string **Required.** The next page’s URL. object The HTML attributes (for example, data attributes) you want to add to the anchor. ``` {% from "govuk/components/pagination/macro.njk" import govukPagination %} {{ govukPagination({ previous: { labelText: "Applying for a provisional lorry or bus licence", href: "#" }, next: { labelText: "Driver CPC part 1 test: theory", href: "#" } }) }} ``` ## For navigating between pages of items Use a list-type layout if users need to navigate through pages of similar items. For example, a list of search results or a list of cases in a case working system. Show the page number in the page `