alwkala

Pagination

Navigation

About

A page navigation control for stepping through paginated lists or tables, with Arabic RTL labels, numbered pages, ellipsis truncation, and first/last/prev/next buttons.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pagination to your project and fits it to your theme.

Code

How Pagination is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";
import Pagination from "@/components/ui/pagination";

export default function PaginationDemo() {
  const [currentPage, setCurrentPage] = React.useState(1);

  return (
    <div dir="rtl" className="flex w-full items-center justify-center p-6">
      <div className="w-full max-w-2xl">
        <Pagination
          currentPage={currentPage}
          totalPages={12}
          totalItems={114}
          pageSize={10}
          onPageChange={setCurrentPage}
        />
      </div>
    </div>
  );
}

More by alwkala

View all
  • Callout

    Callout

    7
  • Progress Bar

    Progress Bar

    1
  • Kbd

    Kbd

  • Checkbox

    Checkbox

  • Ribbon

    Ribbon

  • Rating

    Rating

  • Data Table

    Data Table

  • Navbar

    Navbar

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    43
  • Footer with Big Wordmark

    Footer with Big Wordmark

    33
  • Sidebar

    Sidebar

    390
  • Oversized 404 Numeral

    Oversized 404 Numeral

    77
  • Pagination

    Pagination

    108
  • Footer

    Footer

    89
  • Astryx Breadcrumb Item

    Astryx Breadcrumb Item

    3
  • Menu

    Menu

    23