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

# Function: reactive()

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

将 schema prop 标记为响应式，使运行时求值能够保留 $bindings。

## Type Parameters

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

## Parameters

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

## Returns

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