# Components Pagination: Bordered Pagination

A pagination row where each page number sits inside its own outlined button. The clear borders separate pages cleanly across data tables and search results.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/pagination/bordered-pagination
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/pagination/bordered-pagination.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-pagination-bordered-pagination
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-pagination-bordered-pagination.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, pagination
- Installs to: `@/components/blocks/components/pagination/bordered-pagination`

## About this block

Bordered Pagination is a horizontal row of outlined navigation controls.
A Previous button sits on the left, followed by individual page number
buttons and an ellipsis separator, then a Next button on the right. Every
control shares the same two-pixel border treatment, and the active page
swaps to a primary-colored border and label so the current position is
immediately obvious. Hovering any idle button shifts its border to the
primary color, giving a clear interactive signal without filling the
button.

The row has no surrounding container, so it slots cleanly into a table
footer, a search results page, or any surface that already provides its
own card or panel. The page numbers, the ellipsis position, and the total
count are all yours to adjust. You can show more or fewer numbered steps,
move the ellipsis, or remove it entirely for short result sets.

## When to use

This layout works well wherever a property search or listing grid needs
clean, scannable navigation at the foot of results. On a real estate
marketplace, buyers page through dozens of property listings and the
distinct borders help each step read as a tappable target without crowding
the layout. It is a better fit than dot or icon-only variants when the
total page count matters to the user, and it is less heavy than a card
wrapper when the surrounding page already has strong visual structure.

A natural flow around it on a Components page:

**Before**

- A [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) group block to display the listing
  grid above the controls
- A [Breadcrumbs](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs) block to orient visitors
  within a deep category tree

**After**

- A plain results count or filter summary in text to reinforce what the
  user is paging through
- A [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) block for active filter tags that
  sit near the pagination row

## What you can customize

Each element in the row is an independent link, so you can rework the set
to match your data:

- **Page range and ellipsis.** Swap in the actual page numbers your
  backend returns and shift the ellipsis to reflect how many pages are
  hidden in the middle or at the end.
- **Active page highlight.** The bordered active state uses your primary
  color, so updating your theme token updates the indicator everywhere
  this block appears.
- **Previous and Next labels.** The arrow buttons accept custom labels or
  can be replaced with icon-only variants from the
  [Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination) group if you need a narrower
  footprint.

> Tip: on dense property search pages, pair this block with a per-page
> selector above it so users can expand results before paging forward.

## More in Components Pagination

- [Card Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/card-pagination)
- [Compact Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/compact-pagination)
- [Dot Indicator Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/dot-indicator-pagination)
- [Floating Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/floating-pagination)
- [Icon Only Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/icon-only-pagination)
- [Mini Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/mini-pagination)
- [Responsive Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/responsive-pagination)
- [Rounded Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/rounded-pagination)
- [Shadow Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/shadow-pagination)
- [Split Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/split-pagination)
