# PagerPageSizeContext (@salmonui/navigation/pager)

> The PagerPageSizeContext interface of @salmonui/navigation/pager: renderPageSize context: everything a custom control (for example a Select) needs.

Canonical: https://salmonui.dev/docs/reference/navigation/pager/PagerPageSizeContext

```ts
import type { PagerPageSizeContext } from '@salmonui/navigation/pager';
```

Entry index: https://salmonui.dev/docs/reference/navigation/pager (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/navigation/pager.md).

## Reference

Kind: interface

```ts
interface PagerPageSizeContext {
    readonly value: number | 'all';
    readonly options: readonly PagerPageSizeOption[];
    readonly label: string;
    setPageSize(pageSize: number | 'all'): void;
}
```

`renderPageSize` context: everything a custom control (for example a `Select`) needs.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value: number \| 'all';` |  | The selected option (`'all'` when the page shows every item and `'all'` is offered). |
| `options` | `readonly options: readonly PagerPageSizeOption[];` |  |  |
| `label` | `readonly label: string;` |  | `localeText.pageSize`, for the control's accessible name. |
| `setPageSize` | `setPageSize(pageSize: number \| 'all'): void;` |  |  |
