# Shadcn Page Select

> Pagination with page select dropdown and first/last navigation

- Type: example, free and open source (MIT)
- Component: [Pagination](https://reui.io/components/pagination.md)
- Page: https://reui.io/components/pagination/c-pagination-13
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/pagination.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/pagination.md
- MCP: `get_example("c-pagination-13")`
- Registry item: https://reui.io/r/styles/base-nova/c-pagination-13.json
- Uses: Native Select, Pagination

## Best for

A Page 1 to Page 10 dropdown flanked by first, previous, next and last icon links, with no numbered links

## Agent notes

- The 10 `NativeSelectOption` rows are typed out and nothing handles a change; map them from your page count and navigate on change
- The page `NativeSelect` has no label and its options do not name it; pass an `aria-label` for screen readers

## When not to use

- Hundreds of pages, too many to list in one dropdown: use [Full Width Go-To](https://reui.io/components/pagination/c-pagination-14.md) (`get_example("c-pagination-14")`)

## Install

```bash
npx shadcn@latest add @reui/c-pagination-13
```

## About Shadcn Pagination

### When to use

- Numbered page links between previous and next controls under a list, a table or search results
- Compact pagers of back and forward controls alone or beside a page count, for narrow spaces
- Table footers pairing page controls with a rows per page select, a range count or a page jump field

### When not to use

- A records table that sorts and filters its rows and needs its pager built in: use [Data Grid](https://reui.io/components/data-grid.md) (`get_component("data-grid")`)
- A whole table section with a title, toolbar, rows and a working pager: use the [Base blocks](https://reui.io/blocks/data-grid/base.md)
- Page controls kept in local state that run click handlers, with no URL per page: use [Button Group](https://reui.io/components/button-group.md) (`get_component("button-group")`)

### Agent notes

- `PaginationLink` renders its own anchor and takes neither `render` nor `asChild`; swap that anchor for your router link in your copy of the component
- Every `href` is a hash placeholder and each page number, count and current page is typed in; derive them from your page state or URL

Every ReUI item has a twin like this one; the index is https://reui.io/llms.txt. Agents with the ReUI MCP (https://reui.io/docs/mcp) get the same guidance from the getters named above.
