Find the exact component contract

Find a component. Read its exact API.

The public catalogue, structured API index, split references, and MCP search expose component properties, events, slots, peers, and migration guidance. This lets coding agents inspect a narrow contract before writing markup.

Example

Search for a component, then read its exact 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);
}

Browse components · Read guide (English)