# V pagination 19

> Basic pagination

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

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

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

export function Pattern() {
  return (
    <Pagination className="w-full">
      <PaginationContent className="w-full justify-between">
        <PaginationItem>
          <p className="text-muted-foreground text-sm">
            Showing <span className="font-medium text-foreground">41–60</span>{" "}
            of <span className="font-medium text-foreground">230</span> results
          </p>
        </PaginationItem>
        <PaginationItem className="flex items-center gap-1">
          <PaginationLink aria-label="Go to previous page" href="#" size="icon">
            <ChevronLeftIcon className="size-4" />
          </PaginationLink>
          <span className="text-muted-foreground text-sm tabular-nums">
            3 / 12
          </span>
          <PaginationLink aria-label="Go to next page" href="#" size="icon">
            <ChevronRightIcon className="size-4" />
          </PaginationLink>
        </PaginationItem>
      </PaginationContent>
    </Pagination>
  );
}
```
