thegridcn

Pagination

Navigation 9

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

    91
  • Waveform

    Waveform

    62
  • Data Stream

    Data Stream

    59
  • CTA Banner

    CTA Banner

    28
  • Video Player

    Video Player

    28
  • Terminal

    Terminal

    20
  • 3D Tron Grid Background

    3D Tron Grid Background

    13
  • Dropdown

    Dropdown

    8

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Sidebar

    Sidebar

    422
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6