alwkala

Pagination

Component

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 PaginationIconsOnlyDemo() {
  const [currentPage, setCurrentPage] = React.useState(5);

  return (
    <div dir="rtl" className="flex w-full items-center justify-center p-6">
      <div className="w-full max-w-2xl">
        <Pagination
          variant="icons-only"
          showFirstLast
          showSummary={false}
          currentPage={currentPage}
          totalPages={20}
          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