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
  • 简体中文
  • 接口: ComponentRenderProps<P = Record<string, unknown>>

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

    继承

    • ComponentRenderProps<P, ReactNode>

    类型参数

    类型参数默认类型
    PRecord<string, unknown>

    属性

    onAction?

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

    参数

    参数类型
    eventActionEvent

    返回

    void


    props

    props: P

    继承自

    CoreRenderProps.props


    renderNode

    renderNode: (value: unknown) => ReactNode

    参数

    参数类型
    valueunknown

    返回

    ReactNode

    继承自

    CoreRenderProps.renderNode


    statementId?

    optional statementId?: string

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

    继承自

    CoreRenderProps.statementId

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