> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: reactive()

> **reactive**\<`T` _extends_ `ZodType`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`>>>(`schema`: `T`): `ZodType`\<[`StateField`](/next/api/genui/openui/core/interfaces/StateField.md)\<`output`\<`T`>>>

Mark a schema prop as reactive so runtime evaluation can preserve $bindings.

## Type Parameters

| Type Parameter                                                                             |
| ------------------------------------------------------------------------------------------ |
| `T` _extends_ `ZodType`\<`unknown`, `unknown`, `$ZodTypeInternals`\<`unknown`, `unknown`>> |

## Parameters

| Parameter | Type |
| --------- | ---- |
| `schema`  | `T`  |

## Returns

`ZodType`\<[`StateField`](/next/api/genui/openui/core/interfaces/StateField.md)\<`output`\<`T`>>>
