---
url: /api/formats/scope/src/interfaces/ConnectScopeOptions.md
---
[pantoken-root](../../../../index.md) / [formats/scope/src](../index.md) / ConnectScopeOptions

# Interface: ConnectScopeOptions

Beta

Options for [connectScope](../functions/connectScope.md).

## Properties

### instanceId?

> `optional` **instanceId?**: `string`

Beta

The instance to accept messages for (default [DEFAULT\_INSTANCE](../variables/DEFAULT_INSTANCE.md)).

***

### element?

> `optional` **element?**: `HTMLElement`

Beta

The element to apply received state to (default `document.documentElement`).

***

### host?

> `optional` **host?**: `Window` | `null`

Beta

The window to talk to (default `window.parent`).

***

### hostOrigin?

> `optional` **hostOrigin?**: `string`

Beta

The origin the host must have. Pass `"*"` only for an opaque-origin `srcdoc` document.

***

### onChange?

> `optional` **onChange?**: (`config`) => `void`

Beta

Called after each applied update.

#### Parameters

##### config

[`ScopeConfig`](ScopeConfig.md)

#### Returns

`void`
