{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "schema-builder-demo",
  "title": "Schema Builder Demo",
  "description": "A worked example of Schema Builder: Build the shape you want extracted from a document. Fields carry a name, type, description, and requirement, and object and array fields nest.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/schema-builder.json"
  ],
  "files": [
    {
      "path": "components/demos/schema-builder-demo.tsx",
      "content": "\"use client\"\n\nimport { SchemaBuilder } from \"@/registry/default/schema-builder/schema-builder\"\n\nexport function SchemaBuilderDemo() {\n  return (\n    <SchemaBuilder\n      className=\"w-full max-w-xl\"\n      defaultFields={[\n        {\n          id: \"vendor\",\n          name: \"vendor\",\n          type: \"string\",\n          description: \"Who issued the invoice.\",\n          required: true,\n        },\n        {\n          id: \"lines\",\n          name: \"line_items\",\n          type: \"array\",\n          fields: [\n            { id: \"desc\", name: \"description\", type: \"string\" },\n            { id: \"amount\", name: \"amount\", type: \"number\", required: true },\n          ],\n        },\n      ]}\n    />\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}