# Application Navigation: Pagination Bar

Table footer pagination in two densities: a numbered bar with a row range and rows per page control, plus a compact prev and next variant.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/pagination-bar
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Navigation](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/pagination-bar.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-navigation-pagination-bar
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

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

## About this block

Pagination Bar renders two pagination densities
stacked. The first is a numbered bar under a member
table stub with Name, Role, and Last active columns and
three rows (Priya Raman, Jonas Weber, Alba Ferrer). Its
footer pairs a Showing 76 to 100 of 1,284 range summary
and a Rows per page control reading 25 with the numbered
pager: previous, page 1, an ellipsis, pages 3 through 5
with 4 active, another ellipsis, then page 52, and next.
The second is a compact first page variant, a single row
with Previous disabled, a Page 1 of 52 position, and
Next.

Both are built on the ui/pagination primitives, so the
active link, ellipsis, and prev and next controls come
from the library. The pages array carries label, active,
and ellipsis flags; the middle numbers hide under sm via
hidden sm:block while the active page always shows.

## When to use

Reach for this block under any paged table or list. Wire
the range summary to your query offset and total count,
the Rows per page control to your page size, and the
page array to your current cursor so the active number
tracks the data.

A natural flow around it on an Application Pro page:

**Before**

- [Data table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables)
- [Filter bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search)

**After**

- [Empty state](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states)
- [Record pager header](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation)

## What you can display

One strong use is the footer under a records table.
Other configurations:

- **Compact only.** Ship just the prev and next footer
  for mobile lists and drop the numbered bar.
- **Go to page.** Add a small numeric field beside the
  range summary for very large sets.
- **Load more.** Swap the numbered links for a single
  Load more button with a remaining count.

> Tip: the middle page numbers hide under sm while the
> active page stays, so the bar never wraps or overflows
> on a narrow table.

## More in Application Navigation

- [App Switcher Grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/app-switcher-grid)
- [Breadcrumb Dropdown Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/breadcrumb-dropdown-blueprint)
- [Breadcrumbs With Actions](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/breadcrumbs-with-actions)
- [Command Palette Open](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/command-palette-open)
- [Context Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/context-menu-blueprint)
- [Global Search Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/global-search-results)
- [Help Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/help-menu-blueprint)
- [Jump To Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/jump-to-blueprint)
- [Mega Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/mega-menu-blueprint)
- [Page Outline Rail](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/page-outline-rail)
- [Pinned Items Rail](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/pinned-items-rail)
- [Recent History Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/recent-history-menu-blueprint)
- [Record Pager Header](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/record-pager-header)
- [Secondary Settings Nav](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/secondary-settings-nav)
- [Section Switcher](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/section-switcher)
- [Sidebar Footer Menu Open](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/sidebar-footer-menu-open)
- [Sidebar Nav Tree](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/sidebar-nav-tree)
- [Sidebar Search Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/sidebar-search-results)
- [Tab Bar Mobile](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/tab-bar-mobile)
- [Tab Navigation Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/tab-navigation-panel)
- [Topbar With Command Hint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/topbar-with-command-hint)
- [Workspace Switcher Open](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/workspace-switcher-open)
