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, and this page is available as Markdown at /next/zh/api/genui/openui/core/interfaces/ComponentRenderProps.md.
Lynx
  • 简体中文
  • Interface: ComponentRenderProps<P = Record<string, unknown>>

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

    Extends

    • ComponentRenderProps<P, ReactNode>

    Type Parameters

    Type ParameterDefault type
    PRecord<string, unknown>

    Properties

    onAction?

    optional onAction?: (event: ActionEvent) => void

    Parameters

    ParameterType
    eventActionEvent

    Returns

    void


    props

    props: P

    Inherited from

    CoreRenderProps.props


    renderNode

    renderNode: (value: unknown) => ReactNode

    Parameters

    ParameterType
    valueunknown

    Returns

    ReactNode

    Inherited from

    CoreRenderProps.renderNode


    statementId?

    optional statementId?: string

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

    Inherited from

    CoreRenderProps.statementId

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。