# Pagination Pagination is navigation for paginated content. ## Guidance Paginated content is any content split into multiple pages determined by a specific amount of content per page, not split by any meaningful attribute, like feature or subject or step. Search results and article collections are often paginated. Readers use the pagination component to move from page to page in paginated content, or directly to the first or last page of the paginated set. ### When to use - Typically used for paginated search results. - Can be used for multi-page collections of related items, including articles related to a category or tag, content archives, and history or activity. Splitting a large collection of related items into individual pages can improve browsability and scannability. ### When to consider alternatives - If you need to indicate progress in a series of steps that must be completed in succession, like an onboarding or checkout flow, this isn't the component for you. - If the length of the entire collection is less than 3-4 screen lengths long, consider showing all the items at once instead of paginating. ### Usage - Users want to know the length of a paginated section, so show the size of the paginated set. - Highlight the current page the user is on in relation to the entire collection of pages. - Don't split the navigation items over multiple lines as this can make individual pages more difficult to understand and select. - Don't include out-of-sequence items directly adjacent to one another. Wherever there are missing pages, an ellipses should be used. - Avoid adding complexity by focusing on the essentials and avoid adding more items to Pagination just to fill the space. - Use touch targets that are big enough to select with any finger and have enough separation to avoid mistakes. - Do not use buttons for URL-based pagination. Because the URL is updated, the browser history stack updates and a link is the correct tag to use. - Consider page load, performance, and the user's scrolling preferences when determining how many items are displayed on each page. ## Accessibility The Pagination component has been tested against, and meets, WCAG 2.1 standards for text size, color contrast, and screenreader usage. ### Accessibility Guidance - The Pagination component uses a wrapping `