ORIZEN/TUI
ComponentsPaginator

Paginator

stable

Dot-style or numeric page navigation indicator.

Browser preview is a simulation. The copied component runs in actual terminal apps.

paginator.tsx
Dots
Numeric
1 /7

Installation

npx orizen-tui@latest add paginator

if dependency install fails, run: npm install ink@^5.0.1 react@^18.3.1 @types/react@^18.3.18 orizen-tui-core@latest

Usage

paginator.imports.tsx
paginator.example.tsx

Examples

Variants

paginator.example1.tsx
Dots
Numeric
1 /7

API Reference

Paginator

total
number

Total number of pages

current
number

Current page (1-based)

variant"dots"
"dots" | "numeric"

Visual style

activeDot"●"
string

Character for the active page dot

inactiveDot"○"
string

Character for inactive page dots