什么是 canvas-component-metadata?
为 Canvas 组件定义有效的 component.yml 元数据,包括 props、slots 和 enum。在以下情况下使用:(1) 创建新组件,(2) 添加或修改 props,(3) 排除“不是有效选择”或 prop 类型错误,(4) 将枚举映射到 CVA 变体。 来源:acquia/nebula。
为 Canvas 组件定义有效的 component.yml 元数据,包括 props、slots 和 enum。在以下情况下使用:(1) 创建新组件,(2) 添加或修改 props,(3) 排除“不是有效选择”或 prop 类型错误,(4) 将枚举映射到 CVA 变体。
通过命令行快速安装 canvas-component-metadata AI 技能到你的开发环境
来源:acquia/nebula。
Every prop definition must include a title for the UI label. The examples array is required for required props and recommended for all others. Only the first example value is used by Drupal Canvas.
The prop ID (the key under properties) must be the camelCase conversion of the title value.
Only include user-facing, Canvas-editable props in component.yml. Implementation-only React props must stay in JSX and must not be added to metadata.
为 Canvas 组件定义有效的 component.yml 元数据,包括 props、slots 和 enum。在以下情况下使用:(1) 创建新组件,(2) 添加或修改 props,(3) 排除“不是有效选择”或 prop 类型错误,(4) 将枚举映射到 CVA 变体。 来源:acquia/nebula。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/acquia/nebula --skill canvas-component-metadata为 Canvas 组件定义有效的 component.yml 元数据,包括 props、slots 和 enum。在以下情况下使用:(1) 创建新组件,(2) 添加或修改 props,(3) 排除“不是有效选择”或 prop 类型错误,(4) 将枚举映射到 CVA 变体。 来源:acquia/nebula。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/acquia/nebula --skill canvas-component-metadata 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/acquia/nebula