# ToolbarAction reference

Identifies a toolbar control, for choosing which controls the toolbar shows and in which order through `ToolbarConfig`.

## Used by

- [Toolbar](https://react-pdf-viewer-chi.vercel.app/react-pdf-viewer/toolbar.md)

## Import

```ts
import type { ToolbarAction } from '@kingtech/react-pdf-viewer';
```

Signature: `type ToolbarAction = 'zoomOut' | 'zoomLevel' | 'zoomIn' | 'previousPage' | 'pageIndicator' | 'nextPage' | 'fullscreen' | 'rotate' | 'download' | 'print'`

## Properties

| Name | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `zoomOut` | `'zoomOut'` | — | No | Zoom out button. Zoom group. |
| `zoomLevel` | `'zoomLevel'` | — | No | Zoom percentage; a reset button with `zoomReset`. Zoom group. |
| `zoomIn` | `'zoomIn'` | — | No | Zoom in button. Zoom group. |
| `previousPage` | `'previousPage'` | — | No | Previous page button. Page group. |
| `pageIndicator` | `'pageIndicator'` | — | No | Current page and total; an input with `pageInput`. Page group. |
| `nextPage` | `'nextPage'` | — | No | Next page button. Page group. |
| `fullscreen` | `'fullscreen'` | — | No | Enter / exit fullscreen. Actions group. |
| `rotate` | `'rotate'` | — | No | Rotate 90° clockwise. Actions group. |
| `download` | `'download'` | — | No | Save the loaded document. Actions group. |
| `print` | `'print'` | — | No | Print according to `printMode`. Actions group. |

## Source

[packages/react-pdf-viewer/src/types.ts](https://github.com/kiralygyula92/react-pdf-viewer/blob/main/packages/react-pdf-viewer/src/types.ts#L44)

