@yarcl/react
    Preparing search index...

    Function Pagination

    • Navigation between pages of results: previous and next buttons, the pages around the current one, and the first and last pages with an ellipsis for the gaps. The compact layout shows a page summary with previous and next buttons at the inline end. Renders a <nav> landmark; numbered layouts mark the current page with aria-current="page". Compact summaries announce updates politely. Arrow keys, Home and End move focus between buttons.

      Parameters

      Returns Element

      <Pagination count={20} page={page} onPageChange={setPage} aria-label="Search results" />