A navigation landmark of page buttons or links with Previous, Next, First, Last and ellipses, the current page marked aria-current, in each framework.
Moves between the pages of a paged list: a results table, a search, an archive. The APG has no
pagination pattern and Base UI has no Pagination, so the behaviour is the APG-closest one: a
navigation landmark
you name, the current page marked aria-current="page" as the APG's
breadcrumb marks its current link, and
native buttons or links in the tab order (no arrow keys: it is no composite widget).
Page: from 1, controlled or not; a page outside [1, count] is clamped. count, or
total and pageSize (ceil(total / pageSize)), never less than 1.
Range: the Root's children render it (React: a function; Vue: the default scoped slot;
Angular: items()): every page while they fit in 2 × boundaryCount + 2 × siblingCount + 3
items, else the boundary pages, the window around the current page (kept whole near the ends),
and an ellipsis on each side, never one that stands for a single page. With 10 pages and the
defaults, page 5 gives 1 … 4 5 6 … 10.
Controls: Previous and First are disabled on the first page, Next and Last on the last; a
press reports the new page with its reason (item-press, previous-press, next-press,
first-press, last-press); the current page's Item reports nothing.
Links: render a link with nativeButton={false}: no type, aria-disabled instead of
disabled, and its own navigation (the href, your router) goes on.
No text: name the Root (aria-label) and the arrows; an Item is named by its page number.
Every part also takes what the primitive contract gives:
render (Vue: as and the render slot), a class and a style, a ref, and any attribute, which
it forwards. Vue binds them as props (v-model:page, :page-size, :native-button), and Angular
as inputs ([(page)], [pageSize], [nativeButton]).
The browser's: Tab and Shift+Tab move through the enabled controls, Enter (and Space on a button)
presses one. A disabled button is out of the tab order; a disabled link stays in it and its press
does nothing.