{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "time-field-hc-example",
  "title": "Time Field Hc",
  "description": "time-field-hc-example",
  "dependencies": [
    "@internationalized/date"
  ],
  "registryDependencies": [
    "https://intentui.com/r/date-field",
    "https://intentui.com/r/field",
    "https://intentui.com/r/switch",
    "https://intentui.com/r/time-field"
  ],
  "files": [
    {
      "path": "src/components/examples/date-and-time/time-field/time-field-hc-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 { Switch, SwitchField } from '@/components/ui/switch'\nimport { TimeField } from '@/components/ui/time-field'\n\nexport default function TimeFieldHcDemo() {\n  const [hc, setHc] = useState<12 | 24>(24)\n  const [value, setValue] = useState(new Time(13, 45))\n  return (\n    <div className=\"flex flex-col gap-y-6\">\n      <SwitchField\n        isSelected={hc === 24}\n        onChange={() => setHc((prevHc) => (prevHc === 24 ? 12 : 24))}\n      >\n        <Switch>{hc} hour</Switch>\n      </SwitchField>\n      <TimeField value={value} onChange={(newValue) => setValue(newValue!)} hourCycle={hc}>\n        <Label>Event time</Label>\n        <DateInput />\n      </TimeField>\n    </div>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/time-field-hc-example/page.tsx"
    }
  ],
  "type": "registry:page"
}