# CaptionsOptions

> Configuration passed to the captions runtime when binding to a video element.

```ts
type CaptionsOptions = object;
```

Configuration passed to the captions runtime when binding to a video element.

## Properties

### autoEnable?

```ts
optional autoEnable?: boolean;
```

When false, caller must invoke [Captions.enable](/docs/api/classes/Captions#enable) manually.

***

### captions?

```ts
optional captions?: Caption[] | null;
```

Initial caption track.

***

### container?

```ts
optional container?: HTMLDivElement;
```

Optional custom container to host the Konva stage.

***

### debug?

```ts
optional debug?: boolean;
```

Show debug bounding boxes around lines/blocks.

***

### preset

```ts
preset: StylePreset;
```

Initial preset controlling font, colors, animations.

***

### video

```ts
video: HTMLVideoElement;
```

Video element that should receive overlays.

Source: https://captionsjs.dev/docs/api/type-aliases/CaptionsOptions
