- Constructor-specific options
label: defaulting to I18n.t("nitro_kit.pagination.label"), pagy: nil, page_url: nil, id: nil
- Root and closed vocabulary
nav[data-nk=pagination]- Compound contract
- Accepts either a declaration block or a Pagy object. A Pagy object builds previous, series, gap, current, and next items automatically through Pagy's public
previous, next, data_hash, and page_url API; a callable page_url: overrides those destinations. prev and next fall back to their default labels only when no content block supplies one. The current page without an href renders span[data-slot=pagination-current][aria-current=page], not a Button. Manual items retain ordering, uniqueness, current-link, and ellipsis validation. Default previous/next text, their fallback aria-labels, and the ellipsis label come from nitro_kit.pagination.*.