{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "demo-primitives-headless-switch",
  "title": "Headless Switch Demo",
  "description": "Demo showing an animated headless switch.",
  "registryDependencies": [
    "@odysseyui/primitives-headless-switch"
  ],
  "files": [
    {
      "path": "registry/demo/primitives/headless/switch/index.tsx",
      "content": "import { Switch, SwitchThumb } from '@/components/odyssey/primitives/headless/switch';\nimport { Field, Label } from '@headlessui/react';\nimport { cn } from '@/lib/utils';\n\nexport const HeadlessSwitchDemo = () => {\n  return (\n    <Field>\n      <Label className=\"flex items-center gap-x-3\">\n        <Switch\n          className={cn(\n            'relative flex p-0.5 h-6 w-10 items-center justify-start rounded-full border transition-colors',\n            'data-[checked]:bg-primary data-[checked]:justify-end',\n          )}\n          defaultChecked\n        >\n          <SwitchThumb\n            className=\"rounded-full bg-accent h-full aspect-square\"\n            pressedAnimation={{ width: 22 }}\n          />\n        </Switch>\n        Airplane mode\n      </Label>\n    </Field>\n  );\n};\n",
      "type": "registry:ui",
      "target": "components/odysseyui/demo/primitives/headless/switch.tsx"
    }
  ],
  "type": "registry:ui"
}