# Components Pagination: Card Pagination

Pagination wrapped in a raised card surface with page numbers and prev next controls. Groups navigation neatly below a list or grid of cards.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/pagination/card-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/card-pagination.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-pagination-card-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-card-pagination.json"`.

## Depends on

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

## About this block

Card Pagination wraps a standard pagination row inside a raised card
surface. The content area holds a Previous control on the left, a
sequence of numbered page links, an ellipsis to signal skipped pages,
the last visible page number, and a Next control on the right. Page
two is shown as active in the demo so the highlight state is visible
at a glance.

Every part of the row is independently editable. You can change the
total page count, adjust which page is marked active, show or hide
the ellipsis, and rewrite the labels on the Previous and Next
controls without affecting the card frame or its shadow.

## When to use

Reach for this block when pagination needs to feel like a deliberate
UI element rather than a line of bare links. It works especially well
below a candidate list, job board grid, or applicant table on an HR
and hiring platform where the card surface groups the control with
the content it belongs to. Compared to a borderless row, the card
draws a clear boundary that prevents the controls from blending into
surrounding elements.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to display the paginated items
  the controls belong to
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) as status labels on each
  record above the pagination row

**After**

- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) for empty state or end of
  results messaging below the controls
- [Breadcrumbs](https://www.shadcn-ui-blocks.com/blocks/components/breadcrumbs) if the paginated
  list sits inside a drill-down view

## What you can customize

The card surface and controls each accept straightforward changes
without restructuring the block:

- **Card appearance.** The border, background, and shadow on the
  container come from your card tokens, so the block inherits any
  theme update automatically.
- **Page sequence.** Add or remove numbered links and move the
  ellipsis to match the actual depth of your data set.
- **Active state.** Set the active flag on whichever page number
  reflects the current position in your paginated response.

> Tip: if your list rarely exceeds three or four pages, remove the
> ellipsis and last page link so the row stays compact inside the
> card frame.

## More in Components Pagination

- [Bordered Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/bordered-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)
