thegridcn

Pagination

Navigation 7

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

    77
  • Waveform

    Waveform

    55
  • Data Stream

    Data Stream

    51
  • CTA Banner

    CTA Banner

    23
  • Video Player

    Video Player

    22
  • Terminal

    Terminal

    13
  • 3D Tron Grid Background

    3D Tron Grid Background

    7
  • Testimonial Card

    Testimonial Card

    5

More in Navigation

View all
  • Sidebar

    Sidebar

    233
  • Tabs

    Tabs

    60
  • Newsletter Signup Footer

    Newsletter Signup Footer

    16
  • Progress Bar Stepper

    Progress Bar Stepper

    36
  • Footer 2

    Footer 2

    201
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    43
  • Pagination

    Pagination

    86
  • Numberless Pagination with Text

    Numberless Pagination with Text

    11