{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "time-field-controlled-example",
  "title": "Time Field Controlled",
  "description": "time-field-controlled-example",
  "dependencies": [
    "@internationalized/date"
  ],
  "registryDependencies": [
    "https://intentui.com/r/date-field",
    "https://intentui.com/r/field",
    "https://intentui.com/r/time-field"
  ],
  "files": [
    {
      "path": "src/components/examples/date-and-time/time-field/time-field-controlled-example.tsx",
      "content": "'use client'\n\nimport { Time } from '@internationalized/date'\nimport { useState } from 'react'\nimport { DateInput } from '@/components/ui/date-field'\nimport { Label } from '@/components/ui/field'\nimport { TimeField } from '@/components/ui/time-field'\n\nexport default function TimeFieldControlledDemo() {\n  const [value, setValue] = useState(new Time(11, 45))\n  return (\n    <div className=\"space-y-3\">\n      <div className=\"[&_p]:py-2\">\n        <p>{value ? value.toString() : '--'}</p>\n      </div>\n      <TimeField value={value} onChange={(newValue) => setValue(newValue!)}>\n        <Label>Event time</Label>\n        <DateInput />\n      </TimeField>\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/time-field-controlled-example/page.tsx"
    }
  ],
  "type": "registry:page"
}