[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Pager

# Function: Pager()

> **Pager**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:940](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L940)

Renders a Prev / numbered / Next pager from a `Paginator` (the result of
`Model.paginate()` or the in-memory `paginate()` helper). Links are SPA `navigate` anchors to
`?page=N`, so they pair with `@url page` with no per-link wiring; renders nothing for
a single page.

## Parameters

### props

[`PagerProps`](../interfaces/PagerProps)

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Remarks

Pass `params` to preserve other query state (search term, per-page, …). `hover`
prefetches each page; `prevLabel`/`nextLabel` and the class props override the
defaults. This is the links UI — the Flow equivalent of Livewire's
`$paginator->links()` view.

## Example

```tsx
<Pager paginator={p} params={{ q: this.query, perPage: this.perPage }} hover />
```
