adit-firdaus

Pagination

Navigation

About

A numeric page navigator with an animated sliding highlight on the current page, that collapses into a compact "Page X of Y" readout when there isn't room for the full row of page keys.

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

import * as React from "react";
import Pagination from "@/components/ui/pagination";

export default function PaginationDemo() {
  const [page, setPage] = React.useState(3);
  return (
    <div className="flex w-full items-center justify-center p-10">
      <Pagination page={page} pageCount={12} onPageChange={setPage} />
    </div>
  );
}

Dependencies

More by adit-firdaus

View all
  • Steps

    Steps

    44
  • Popover

    Popover

    3
  • Adaptive Sheet

    Adaptive Sheet

    1
  • Notice Bar

    Notice Bar

    1
  • Adaptive Card

    Adaptive Card

  • Box

    Box

  • Label

    Label

  • Kbd

    Kbd

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    92
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    266
  • Button Breadcrumb

    Button Breadcrumb

    36
  • Sidebar

    Sidebar

    418
  • Motion Navigation Menu

    Motion Navigation Menu

  • Astryx Breadcrumb Item

    Astryx Breadcrumb Item

    1
  • Menu

    Menu

    27
  • Progress Bar Stepper

    Progress Bar Stepper

    65