Skip to content
Frauthy Brand
Frauthy index

Go anywhere.

    No exact contract found. Try a component family, product name, prop, or keyboard key.

    ↑↓ move↵ openesc close

    Pagination

    navigation

    List-based pagination navigation with current-page state, disabled previous/next controls at bounds, optional links, and a labelled navigation landmark.

    Preview

    Stateful buttons
    Showing page 3 of 6
    Link controls at first page

    Usage

    import { Pagination } from 'PRIVATE_BETA_PACKAGE_COORDINATE_REDACTED';
    
    <Pagination
      currentPage={page}
      pageCount={12}
      onPageChange={setPage}
      aria-label="Results pages"
    />
    
    const pageHref = (targetPage: number) => '?page=' + targetPage;
    
    <Pagination
      currentPage={page}
      pageCount={12}
      hrefForPage={pageHref}
    />

    Props

    PropTypeDefaultDescription
    pageCountnumberrequiredTotal number of pages
    currentPagenumberrequiredCurrent one-based page number; clamped into range
    onPageChange(page: number) => void--Called when an enabled page, previous, or next control is activated
    hrefForPage(page: number) => string--Generates hrefs for enabled controls; controls render as links when provided
    aria-labelstring'Pagination'Accessible label for the navigation landmark
    classstring--Additional classes on the nav element

    Accessibility

    Do / Don't

    Do

    Use Pagination when users need direct access to nearby pages and clear previous/next movement through a finite result set.

    Don't

    Don't use pagination for endless feeds or progressive disclosure; use loading patterns designed for continuous content.