सही घटक अनुबंध खोजीं

घटक खोजीं। ओकर सटीक 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);
}

घटक देखीं · गाइड पढ़ीं (अंग्रेजी में)