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

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

More by alwkala

View all
  • Callout

    Callout

    10
  • Progress Bar

    Progress Bar

    2
  • Breadcrumb

    Breadcrumb

    1
  • Navbar

    Navbar

    1
  • Kbd

    Kbd

  • Back To Top

    Back To Top

  • Checkbox

    Checkbox

  • Seal

    Seal

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    96
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    285
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Tabs like bookmark

    Tabs like bookmark

    87