canvas-component-metadata とは?
props、slots、enum など、Canvas コンポーネントの有効な content.yml メタデータを定義します。 (1) 新しいコンポーネントの作成、(2) プロパティの追加または変更、(3) 「有効な選択ではない」またはプロパティ タイプ エラーのトラブルシューティング、(4) 列挙型を CVA バリアントにマッピングする場合に使用します。 ソース: acquia/nebula。
props、slots、enum など、Canvas コンポーネントの有効な content.yml メタデータを定義します。 (1) 新しいコンポーネントの作成、(2) プロパティの追加または変更、(3) 「有効な選択ではない」またはプロパティ タイプ エラーのトラブルシューティング、(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.
props、slots、enum など、Canvas コンポーネントの有効な content.yml メタデータを定義します。 (1) 新しいコンポーネントの作成、(2) プロパティの追加または変更、(3) 「有効な選択ではない」またはプロパティ タイプ エラーのトラブルシューティング、(4) 列挙型を CVA バリアントにマッピングする場合に使用します。 ソース: acquia/nebula。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/acquia/nebula --skill canvas-component-metadataprops、slots、enum など、Canvas コンポーネントの有効な content.yml メタデータを定義します。 (1) 新しいコンポーネントの作成、(2) プロパティの追加または変更、(3) 「有効な選択ではない」またはプロパティ タイプ エラーのトラブルシューティング、(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