thegridcn

Pagination

Navigation 8

About

A compact, Tron-inspired pagination control with previous/next arrows, truncated page numbers with ellipses, sibling range, and a page-count indicator.

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/thegridcn-pagination";

export default function PaginationDemo() {
  const [page, setPage] = React.useState(4);

  return (
    <div className="flex min-h-64 w-full items-center justify-center bg-background p-10">
      <Pagination currentPage={page} totalPages={12} onPageChange={setPage} />
    </div>
  );
}

More by thegridcn

View all
  • Energy Meter

    Energy Meter

    87
  • Waveform

    Waveform

    59
  • Data Stream

    Data Stream

    56
  • CTA Banner

    CTA Banner

    25
  • Video Player

    Video Player

    25
  • Terminal

    Terminal

    16
  • 3D Tron Grid Background

    3D Tron Grid Background

    8
  • Dropdown

    Dropdown

    6

More in Navigation

View all
  • Sidebar

    Sidebar

    365
  • Pagination

    Pagination

    38
  • Navbar

    Navbar

    8
  • Sortable Sidebar Navigation

    Sortable Sidebar Navigation

    76
  • Pagination

    Pagination

    105
  • Oversized 404 Numeral

    Oversized 404 Numeral

    72
  • Tabs like bookmark

    Tabs like bookmark

    76
  • Footer

    Footer

    86