> 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.

# Interface: ComponentRenderProps\<P = `Record`\<`string`, `unknown`>>

传给 OpenUI ReactLynx 组件渲染器的 props。

## Extends

- `ComponentRenderProps`\<`P`, `ReactNode`>

## Type Parameters

| Type Parameter | Default type                   |
| -------------- | ------------------------------ |
| `P`            | `Record`\<`string`, `unknown`> |

## Properties

### onAction?

> `optional` **onAction?**: (`event`: [`ActionEvent`](/next/zh/api/genui/openui/core/interfaces/ActionEvent.md)) => `void`

#### Parameters

| Parameter | Type                                                                      |
| --------- | ------------------------------------------------------------------------- |
| `event`   | [`ActionEvent`](/next/zh/api/genui/openui/core/interfaces/ActionEvent.md) |

#### Returns

`void`

***

### props

> **props**: `P`

#### Inherited from

`CoreRenderProps.props`

***

### renderNode

> **renderNode**: (`value`: `unknown`) => `ReactNode`

#### Parameters

| Parameter | Type      |
| --------- | --------- |
| `value`   | `unknown` |

#### Returns

`ReactNode`

#### Inherited from

`CoreRenderProps.renderNode`

***

### statementId?

> `optional` **statementId?**: `string`

解析后程序中的语句 ID（例如 "header"、"prose1"）。内联组件为 undefined。

#### Inherited from

`CoreRenderProps.statementId`
