{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "switch-controlled-example",
  "title": "Switch Controlled",
  "description": "switch-controlled-example",
  "registryDependencies": [
    "https://intentui.com/r/field",
    "https://intentui.com/r/switch"
  ],
  "files": [
    {
      "path": "src/components/examples/controls/switch/switch-controlled-example.tsx",
      "content": "'use client'\n\nimport { useState } from 'react'\n\nimport { Description } from '@/components/ui/field'\nimport { Switch, SwitchField } from '@/components/ui/switch'\n\nexport default function SwitchControlledDemo() {\n  const [darkMode, setDarkMode] = useState(false)\n  return (\n    <SwitchField isSelected={darkMode} onChange={setDarkMode} value=\"dark_mode\" name=\"dark\">\n      <Switch>Dark mode</Switch>\n      <Description>Dark mode is {darkMode ? 'enabled' : 'disabled'}.</Description>\n    </SwitchField>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/switch-controlled-example/page.tsx"
    }
  ],
  "type": "registry:page"
}