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

    10
  • Progress Bar

    Progress Bar

    4
  • Breadcrumb

    Breadcrumb

    3
  • Spinner

    Spinner

    1
  • Accordion

    Accordion

    1
  • Navbar

    Navbar

    1
  • Kbd

    Kbd

  • Back To Top

    Back To Top

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    162
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    427
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    27
  • Sidebar

    Sidebar

    441
  • Tabs

    Tabs

    38
  • Footer Section

    Footer Section

    2
  • Sidebar

    Sidebar

    366
  • Pagination

    Pagination

    119