Skip to content
Browse library
BIU UI/Components/Pagination
COMPONENTS

Pagination

Explore the Pagination component and try its interactive examples.

INTERACTIVE PREVIEW

Preview

Loading preview…
GET STARTED

Installation

Install the component source via shadcn Registry, the BIU CLI, or as an npm package.

TERMINAL / pnpm
pnpm dlx shadcn add @biudev/pagination

First time using @biudev? Map "@biudev": "https://ui.biu.dev/r/0.1.0/{name}.json" under registries in your components.json (see setup).

Usage

Start with this example, then adjust the import path for your project.

EXAMPLE / TSX
import { useState } from "react";
import { Pagination } from "@/components/ui/biu/pagination";

export function Example() {
  const [page, setPage] = useState(1);
  return <Pagination page={page} onPageChange={setPage} total={120} pageSize={10} />;
}

Examples

Try each example or switch to its code.

API reference

Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.

PaginationLabels

PaginationProps

Also accepts properties from Omit<React.ComponentProps<'nav'>, 'onChange'>.

Source

Review a formatted version of the component source used by the Registry.