navigation — wyrd.component.pagination

Pagination

Paged navigation control with deterministic page-window rendering.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
single state: boundary
Usage
import { WyrdPagination } from "@wyrd-company/react";

<WyrdPagination defaultPage={1} pageCount={1} />

// events: onPageChange
seven state: default
Usage
import { WyrdPagination } from "@wyrd-company/react";

<WyrdPagination defaultPage={4} pageCount={7} />

// events: onPageChange
windowed state: current
Usage
import { WyrdPagination } from "@wyrd-company/react";

<WyrdPagination defaultPage={10} pageCount={20} />

// events: onPageChange
02

Properties

NameTypeDefaultSummary
page integer undefined Controlled current 1-based page.
default-page integer 1 Initial uncontrolled 1-based page.
page-count integer undefined Total number of pages.
03

Slots & events

EventPayloadSummary
page-change page Emitted when the user requests a different page.
04

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
item.background color.surface
item.foreground color.primary
item.background-hover color.secondary
item.current-background color.primary
item.current-foreground color.on-primary
item.disabled-foreground color.on-disabled
radius rounded.md
padding-x spacing.sm
padding-y spacing.xs
gap spacing.xs
text typography.label-md
05

States

StateSourceSummary
default platform Page navigation with previous, windowed page items, and next.
current property Current page derived from page or default-page.
boundary property Previous or next is disabled at the first or last page.
06

Accessibility

From the contract's accessibility obligations. Role navigation; Component-owned localized navigation message labels the landmark.

  • Tab moves through enabled pagination buttons in document order.
  • Enter or Space activates a focused pagination button.
  • Current page buttons expose aria-current=page on web.
  • Previous is disabled on the first page; Next is disabled on the last page.
  • Ellipsis markers are hidden from the accessibility tree.
  • Previous and Next are named by component-owned localized messages.
  • Verified under: rtl, cvd-deuteranopia, density-compact, text-expansion.
07

SDUI

Status: serializable. Pagination serializes controlled and default page inputs plus page count; hosts own route/data changes.

SerializableMembers
Propertiespage, default-page, page-count
Slots
Eventspage-change
The Wyrding Way — a contract-first design system. © Wyrd Company