rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

Pagination

Page navigation controls for paginated data.

Examples

Basic pagination

Standard numbered page controls with previous/next buttons.

With ellipsis

Large page counts collapse middle pages into an ellipsis.

Compact (prev/next only)

Minimal pagination showing only previous and next with a page counter.

With page count

Displays the visible range and total record count above the controls.

Icons Only

Pagination with just arrow buttons and page indicator.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { Pagination } from "@rokle/components";
import { Pagination } from "@rokle/components";

export function Example() {
  return <Pagination />;
}

Source

The implementation source for this component. Copy it into your project and customise.

API Reference

PropTypeDefaultDescription
pagenumber-Current page number.
totalPagesnumber-Total number of pages.
onPageChange(page: number) => void-Called when page changes.