ચોક્કસ ઘટક કરાર શોધો

ઘટક શોધો. તેનું ચોક્કસ 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);
}

ઘટકો જુઓ · માર્ગદર્શિકા વાંચો (અંગ્રેજીમાં)