dixant

Pagination

Navigation

About

A page navigation control with numbered page buttons, previous/next arrows, and smart ellipsis for jumping between many pages of content.

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(5);

  return (
    <div className="flex w-full items-center justify-center p-8">
      <Pagination
        totalPages={20}
        currentPage={page}
        onChange={setPage}
        siblingCount={1}
      />
    </div>
  );
}

More by dixant

View all
  • Tooltip

    Tooltip

    1
  • Spinner

    Spinner

    1
  • Select

    Select

  • Tatva Input

    Tatva Input

  • Typography

    Typography

  • Avatar

    Avatar

  • Divider

    Divider

  • Stack

    Stack

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    162
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    427
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    27
  • Sidebar

    Sidebar

    441
  • Tabs

    Tabs

    38
  • Footer Section

    Footer Section

    2
  • Sidebar

    Sidebar

    366
  • Pagination

    Pagination

    119