[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [index](../README) / setInstanceProps

# Function: setInstanceProps()

> **setInstanceProps**(`theme`, `page`, `id`, `changes`): [`DocumentEdit`](../type-aliases/DocumentEdit)

Change an instance's props — a fixed block's too: each value is checked by
its field; `undefined` removes the stored value, so the field falls back to
its content-pack text or default.

## Parameters

### theme

[`ThemeDefinition`](../interfaces/ThemeDefinition)

### page

[`PageData`](../interfaces/PageData)

### id

`string`

### changes

`Readonly`\<`Record`\<`string`, [`JsonValue`](../type-aliases/JsonValue) \| `undefined`\>\>

## Returns

[`DocumentEdit`](../type-aliases/DocumentEdit)
