Pagination

The ArcadiaPagination component renders page navigation with configurable sibling count, first/last buttons, and smart ellipsis.

Basic Usage

<ArcadiaPagination @bind-CurrentPage="page" TotalPages="20" />

<ArcadiaPagination @bind-CurrentPage="page"
                   TotalPages="50"
                   SiblingCount="2"
                   ShowFirstLast="false" />

Parameters

ParameterTypeDefaultDescription
CurrentPageint1Current page number (1-based). Supports two-way binding.
TotalPagesint0Total number of pages.
SiblingCountint1Number of sibling pages shown around the current page.
ShowFirstLastbooltrueWhether first/last page buttons are shown.
ShowPreviousNextbooltrueWhether previous/next page buttons are shown.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Events

EventTypeDescription
CurrentPageChangedEventCallback<int>Fired when the current page changes.

Accessibility

  • Uses <nav> with role="navigation" and aria-label="Pagination".
  • Page buttons include aria-label (e.g., “Page 3”).
  • The active page uses aria-current="page".
  • First/last/prev/next buttons use descriptive aria-label values.
  • Disabled buttons use the disabled attribute.
  • Ellipsis elements use aria-hidden="true".