Pagination

Menus & Navigation
Local guide ↗ import { Pagination } from "bits-ui"

Controlled results

bind:page stays synchronized with page triggers and external controls

Audit log

Current page: 6

Showing 101–120 of 247 events

Compact

siblingCount=0 keeps the control useful in a narrow toolbar

Page 3 of 12

count is the required total item count; pagination derives its page count from perPage, which defaults to 1. The children snippet receives pages, range, and currentPage, so summary text and controls share the same calculation.

Entries in pages are a discriminated union: render type="page" with Pagination.Page, but render type="ellipsis" yourself. Horizontal and vertical orientation also determine the component’s arrow-key behavior.