Binhlaig logoBinhlaig UI
Components/Pagination
Binhlaig UI Component

Pagination

A flexible pagination component for navigating through pages, tables and result sets.

Installation

Install Pagination in your project.

Terminal
npx binhlaig-ui@latest add pagination

For project setup, installer selection, dependencies, and advanced installation instructions, see the Installation Guide.

View Installation Guide →Update or Overwrite →

Import

Import the Pagination primitives you need.

import {
  Pagination,
  PaginationButton,
  PaginationContent,
  PaginationEllipsis,
  PaginationItem,
  PaginationLink,
  PaginationNext,
  PaginationPrevious,
} from "@/components/ui/pagination"

Basic

Use numbered pages together with previous, next and ellipsis controls.

Controlled

Use PaginationButton when pagination state is managed by React.

Previous and Next

A simple pattern for compact applications and dashboards.

Compact

Use ellipsis when the total page count is large.

API Reference

Main primitives available in Binhlaig UI Pagination.

ComponentPurpose
PaginationRoot navigation wrapper.
PaginationContentContainer for pagination items.
PaginationItemWraps an individual pagination control.
PaginationLinkAnchor-based page link.
PaginationButtonButton-based page control for local state.
PaginationPreviousPrevious page link.
PaginationNextNext page link.
PaginationEllipsisIndicates skipped page ranges.