# V pagination 13

> With Page Info, Numbered Pages, Ellipsis, and Per-Page Select

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-pagination-13).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-pagination-13
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-pagination-13-light-de7374335c2c8c28.png
- Registry item: https://ui.cnippet.dev/r/v-pagination-13.json
- Categories: pagination
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-pagination-13.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/pagination`

## Files

### `registry/default/variants/v-pagination-13.tsx`

```tsx
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
import { Input } from "@/registry/default/ui/input";
import {
  Pagination,
  PaginationContent,
  PaginationEllipsis,
  PaginationItem,
  PaginationLink,
} from "@/registry/default/ui/pagination";

export function Pattern() {
  return (
    <Pagination>
      <PaginationContent className="w-full justify-between">
        <PaginationItem className="flex items-center gap-1">
          <PaginationLink aria-label="Go to previous page" href="#" size="icon">
            <ChevronLeftIcon className="size-4" />
          </PaginationLink>
          <PaginationLink href="#" isActive>
            1
          </PaginationLink>
          <PaginationLink href="#">2</PaginationLink>
          <PaginationLink href="#">3</PaginationLink>
          <PaginationLink href="#">4</PaginationLink>
          <PaginationEllipsis />
          <PaginationLink aria-label="Go to next page" href="#" size="icon">
            <ChevronRightIcon className="size-4" />
          </PaginationLink>
        </PaginationItem>
        <PaginationItem className="flex items-center gap-2">
          <span className="whitespace-nowrap text-muted-foreground text-sm">
            Go to page
          </span>
          <Input
            className="h-9 w-16 text-center"
            defaultValue={1}
            max={10}
            min={1}
            type="number"
          />
        </PaginationItem>
      </PaginationContent>
    </Pagination>
  );
}
```
