必要なコンポーネントの仕様を探す
コンポーネントを探し、正確なAPIを確認。
公開カタログ、構造化されたAPI索引、分割されたリファレンス、MCP検索から、プロパティ、イベント、スロット、依存パッケージ、移行手順を調べられます。コーディングエージェントはマークアップを書く前に、必要な範囲の仕様を確認できます。
例
コンポーネントを検索し、その正確な API を確認します。
const origin = 'https://www.lyra-ui.com/api/v1/components';
const search = await fetch(origin + '/search?q=combobox');
if (!search.ok) throw new Error('Component search failed');
const { matches } = await search.json();
const tag = matches[0]?.tag;
if (tag) {
const response = await fetch(origin + '/' + encodeURIComponent(tag));
if (!response.ok) throw new Error('Component reference failed');
const reference = await response.json();
console.log(reference.markdown);
}