Skip to content
Storybook

Pagination

Full for desktop tables, Simple when the count matters more than direct access.

Preview

React · live from the Storybook

HTML and CSS

The same component as plain HTML with pixels-ui.css, no framework needed.

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

Examples

Simple

API reference

Class / attributeTypeDescription
px-paginationclassContainer (nav).
px-page · --ellipsisclassPage button; aria-current="page" when selected.
data-px-pagination · data-stepattributeDemo behaviour.

Figma properties

Pagination6 variants · page “Pagination”Open

Full for desktop tables and lists, Simple when the page count matters more than direct access, Compact for mobile. In RTL, Previous sits on the right and arrows flip. Wrap in <nav aria-label="…

PropertyTypeValues
TypeVariantFull Simple Compact
DirectionVariantLTR RTL
Pagination / Item5 variants · page “Pagination”Open

Page number button. Selected has aria-current="page"; Ellipsis is not interactive.

PropertyTypeValues
PageText“1”
StateVariantDefault Hover Focused Selected Ellipsis

Design tokens

Component tokens from the Figma Component collection. Override them to restyle just this component.

TokenAliasLight value
--px-pagination-content-defaultcolor-content-neutral-secondary#475467
--px-pagination-sizespacing-3636px
--px-pagination-radiusradius-1212px

Accessibility

  • Wrap in <nav aria-label="Pagination">.