Skip to content

Pagination

Numbered pagination always shows the first and last page and one page either side of the current one, with gaps between. Every page is a real link, built from the href pattern by replacing {page}.

  • current, total: current page and page count (required)
  • href: URL pattern with a {page} token (default "?page={page}")
  • variant: numbered (default) or load-more
  • label: accessible name for the nav (default "Pagination")
  • shown, of: for load-more, shows “Showing 24 of 96” when both are set
<Pagination current={5} total={12} href="/notes/page/{page}/" />
First and last page
variant="load-more"

Showing 24 of 96

Load more