# Pagination

> Prev arrow, numbered page buttons, and Next arrow in a merged-border row.

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

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

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/button-22.json
```

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

## Dependencies

- npm packages: `lucide-react`
- Registry items: `button`, `button-group`

## Files

### `registry/patterns/button/button-22.tsx`

```tsx
import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'

import { Button } from '@/components/ui/button'
import { ButtonGroup } from '@/components/ui/button-group'

export function Button22() {
  return (
    <ButtonGroup>
      <Button variant="outline" size="icon" aria-label="Previous page">
        <ChevronLeftIcon />
      </Button>
      <Button variant="outline">1</Button>
      <Button variant="outline" aria-current="page">
        2
      </Button>
      <Button variant="outline">3</Button>
      <Button variant="outline">4</Button>
      <Button variant="outline" size="icon" aria-label="Next page">
        <ChevronRightIcon />
      </Button>
    </ButtonGroup>
  )
}
```
