{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "text-field-controlled-example",
  "title": "Text Field Controlled",
  "description": "text-field-controlled-example",
  "registryDependencies": [
    "https://intentui.com/r/field",
    "https://intentui.com/r/input",
    "https://intentui.com/r/text-field"
  ],
  "files": [
    {
      "path": "src/components/examples/forms/text-field/text-field-controlled-example.tsx",
      "content": "'use client'\n\nimport { useState } from 'react'\n\nimport { Description, Label } from '@/components/ui/field'\nimport { Input } from '@/components/ui/input'\nimport { TextField } from '@/components/ui/text-field'\n\nexport default function TextFieldControlledDemo() {\n  const [value, setValue] = useState('')\n  return (\n    <div className=\"fle flex-col\">\n      <TextField value={value} onChange={setValue} name=\"name\">\n        <Label>Name</Label>\n        <Input />\n        <Description>\n          You have typed: <strong>{value ?? '-'}</strong>\n        </Description>\n      </TextField>\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/text-field-controlled-example/page.tsx"
    }
  ],
  "type": "registry:page"
}