# Results summary

> Showing 1–10 of 97 alongside the page controls.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/pagination-05).

- Page, with a live preview: https://shadcn.exchange/r/flx/pagination-05
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/pagination-05-light-806cec8227cb3d37.png
- Registry item: https://ui.flexnative.com/r/pagination-05.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/pagination-05.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: `pagination`

## Files

### `registry/patterns/pagination/pagination-05.tsx`

```tsx
'use client'

import {
  Pagination,
  PaginationContent,
  PaginationItem,
  PaginationLink,
  PaginationNext,
  PaginationPrevious,
} from '@/components/ui/pagination'

export function Pagination05() {
  return (
    <div className="flex w-full max-w-2xl flex-col items-center justify-between gap-4 sm:flex-row">
      <p className="text-muted-foreground order-2 text-sm sm:order-1">
        Showing <span className="text-foreground font-medium">1–10</span> of{' '}
        <span className="text-foreground font-medium">97</span> results
      </p>

      <Pagination className="order-1 mx-0 w-auto sm:order-2">
        {/* Demo links — cancel navigation so the page does not jump */}
        <PaginationContent onClick={(e) => e.preventDefault()}>
          <PaginationItem>
            <PaginationPrevious href="#" />
          </PaginationItem>
          <PaginationItem>
            <PaginationLink href="#" isActive>
              1
            </PaginationLink>
          </PaginationItem>
          <PaginationItem>
            <PaginationLink href="#">2</PaginationLink>
          </PaginationItem>
          <PaginationItem className="hidden sm:block">
            <PaginationLink href="#">3</PaginationLink>
          </PaginationItem>
          <PaginationItem>
            <PaginationNext href="#" />
          </PaginationItem>
        </PaginationContent>
      </Pagination>
    </div>
  )
}
```
