# Components Pagination: Shadow Pagination

Pagination with subtle drop shadows on each button for depth. The lifted look helps the controls stand out over busy backgrounds and image grids.

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

## Install

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

## Depends on

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

## About this block

Shadow Pagination is a horizontal page navigation row. A Previous button
sits on the left, followed by individual page number buttons, an ellipsis
to indicate skipped pages, a final visible page number, and a Next button
on the right. Every button carries a drop shadow, and the active page is
filled with the primary color and a deeper shadow so it reads as the
current position at a glance.

The row itself is the only moving part. You can adjust how many numbered
buttons appear between the ellipsis and the edges, repoint each href to
real page routes, and change which item is marked active. The Previous,
Next, and ellipsis slots are all independent and can be removed if your
pagination logic does not need them.

## When to use

Reach for this block in a project management workspace where task boards,
backlogs, or activity feeds are paginated and the controls need to lift
visually above a dense card grid or a patterned background. The shadow on
each button gives the row just enough elevation to stay readable without
resorting to heavy borders or high contrast fills. Compared to
[Bordered Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/bordered-pagination),
the shadow treatment feels lighter and more modern; compared to
[Floating Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination/floating-pagination),
it sits inline with the content rather than hovering over it.

A natural flow around it on a Components page:

**Before**

- [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards) to display the paginated grid of
  project cards that this control navigates
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to show status counts or filter
  chips above the grid before the pagination row appears

**After**

- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) for confirmation messages such as
  reaching the last page or an empty result set
- A short footer with per-page count and total results as plain text

## What you can customize

Swap in your own page structure and active state to match any paginated
view in your workspace:

- **Active page indicator.** Mark whichever page number the user is
  currently on with the filled primary button so the position is always
  clear.
- **Ellipsis placement.** Move or duplicate the ellipsis to collapse large
  page ranges on either side of the current page without crowding the row.
- **Prev and Next labels.** Replace the default arrow labels with custom
  text or icons to match the voice of your product.

> Tip: keep the visible page count to three or four numbers around the
> active page so the row stays compact on narrow panels and tablet views.

## More in Components Pagination

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