# PaginatorControls

`interface` in `gateway` · v0.1.0-next.3

<https://docs.seedcord.org/packages/gateway/0.1.0-next.3/interfaces/paginator-controls>

The controls passed to `render`. Each accessor returns a fresh builder stamped with its target page.

```ts
interface PaginatorControls
```

## Methods

### button

```ts
button(
    key: ControlKey,
    cosmetics?: ControlCosmetics
): ButtonBuilder
```

A fresh `ButtonBuilder` for one control, already stamped with its target page and disabled-at-bounds state. Call only cosmetic setters on it, a `setCustomId` or `setStyle(Link)` un-routes it.

### row

```ts
row(keys: ControlKey[]): ActionRowBuilder<ButtonBuilder>
```

Assemble an action row of the chosen controls, in order. Throws on an empty set, more than five controls, or a duplicate.
