# Shadcn Hover Border

> Pagination with hover effect.

- Type: example, free and open source (MIT)
- Component: [Pagination](https://reui.io/components/pagination.md)
- Page: https://reui.io/components/pagination/c-pagination-3
- 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-3")`
- Registry item: https://reui.io/r/styles/base-nova/c-pagination-3.json
- Uses: Pagination

## Best for

Labeled Previous and Next around 3 pages whose idle numbers draw a border on hover, like the outlined current page

## Agent notes

- The hover border lives in the `className` of each idle `PaginationLink`; repeat it on every page link you generate

## Install

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

## 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.
