Skip to content

Registry

AI-readable component metadata for LLMs and code generation tools, generated from the source.

What it is

The registry describes 84 components and 9 blocks. It is generated from the real TypeScript types, the variant definitions and the demos on this site, so it cannot drift from the code. The CLI, this site and the Figma plugin all read it.

Files

Shape

{
  "name": "button",
  "title": "Button",
  "category": "Actions",
  "description": "Primary interactive control...",
  "platforms": {
    "web": {
      "import": "@xerobi/ui/button",
      "exports": [{ "name": "Button", "kind": "component", "props": [...] }],
      "variants": { "variant": ["default", "outline", ...], "size": [...] },
      "slots": ["button"],
      "examples": [{ "title": "Variants", "code": "..." }]
    }
  }
}

Platforms

Today the registry describes the web library. Each entry keeps its data under platforms.web, and the schema reserves reactNative and flutter, so those can be generated into the same files without changing consumers. The design tokens they share already exist for both platforms.

Search documentation

Search pages, components and blocks.