Searching Puzzle Pieces

Type to search Puzzle Pieces.

Pagination

A controlled page navigator. The parent owns page and updates it from @change; the piece renders a windowed strip of page numbers with prev/next buttons and ellipses.

Page 1 of 12

Installation

Copy the piece into your app — it compiles with your build and the code is yours:

puzzle add piece pagination

Requires the pieces.css tokens merged into your app styles (see Introduction).

Usage

import Pagination from '@/components/ui/Pagination.pzl';
<Pagination page={ page } count={ 12 } @change={ setPage } />

Windowing

Small counts