{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-invalid",
  "type": "registry:example",
  "title": "Input Invalid",
  "registryDependencies": [
    "https://seamui.dev/r/field.json",
    "https://seamui.dev/r/input.json"
  ],
  "files": [
    {
      "path": "registry/seam/examples/input-invalid.tsx",
      "content": "import { Field, FieldError } from \"@/registry/seam/ui/field\"\nimport { Input } from \"@/registry/seam/ui/input\"\n\n// Invalid state comes from the surrounding Field: `invalid` paints the well\n// destructive via data-[invalid], and FieldError carries the message with\n// the aria wiring (and the shake, when the error appears after load).\nexport default function InputInvalid() {\n  return (\n    <Field name=\"email\" invalid className=\"max-w-xs\">\n      <Input type=\"email\" defaultValue=\"not-an-email\" />\n      <FieldError match>Enter a valid email address.</FieldError>\n    </Field>\n  )\n}\n",
      "type": "registry:example"
    }
  ]
}