Components/Paginator

Paginator

A compact page indicator for multi-page flows — render it as dots or a numeric n/total via a custom labelBuilder. Navigate with /, h/l or PgUp/PgDn.

Install the package

Every component ships in the single dart_tui package.

$dart pub add dart_tui
paginator · dart_tui
Paginator demo

PaginatorModel

PropertyTypeDescription
pageintCurrent page index.
totalPagesintTotal number of pages (> 0).
labelBuilderString Function(int, int)?Custom renderer; defaults to dots.

Keybindings

← / h / pgupPrevious page
→ / l / pgdnNext page

Related