# V pagination 16

> Controlled with smart ellipsis

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

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-pagination-16
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-pagination-16-light-cc5c330b9c547b2a.png
- Registry item: https://ui.cnippet.dev/r/v-pagination-16.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-16.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-16.tsx`

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

export function Pattern() {
  return (
    <Pagination>
      <PaginationContent className="gap-0 overflow-hidden rounded-full border">
        <PaginationItem>
          <PaginationLink
            aria-label="Go to previous page"
            className="rounded-none border-0 border-e"
            href="#"
            size="icon"
          >
            <ChevronLeftIcon className="size-4" />
          </PaginationLink>
        </PaginationItem>
        <PaginationItem>
          <span className="flex items-center px-4 text-muted-foreground text-sm">
            <span className="font-medium text-foreground">3</span>&nbsp;of 12
          </span>
        </PaginationItem>
        <PaginationItem>
          <PaginationLink
            aria-label="Go to next page"
            className="rounded-none border-0 border-s"
            href="#"
            size="icon"
          >
            <ChevronRightIcon className="size-4" />
          </PaginationLink>
        </PaginationItem>
      </PaginationContent>
    </Pagination>
  );
}
```
