{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch",
  "type": "registry:ui",
  "title": "Switch",
  "description": "Native switch control",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "agent",
    "ui",
    "react"
  ],
  "docs": "https://agent-ui-27t.pages.dev/docs/switch",
  "files": [
    {
      "path": "packages/react/src/switch.tsx",
      "type": "registry:ui",
      "target": "@ui/switch.tsx",
      "content": "import * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, \"type\"> {}\n\nexport const Switch = React.forwardRef<HTMLInputElement, SwitchProps>(\n  ({ className, ...props }, ref) => (\n    <input\n      ref={ref}\n      type=\"checkbox\"\n      role=\"switch\"\n      data-agent-id=\"switch\"\n      className={cn(\n        \"relative h-6 w-11 shrink-0 cursor-pointer appearance-none rounded-full border border-input bg-input transition-colors duration-150 after:absolute after:left-[3px] after:top-[3px] after:size-4 after:rounded-full after:bg-background after:shadow-sm after:transition-transform after:duration-150 checked:border-primary checked:bg-primary checked:after:translate-x-5 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none motion-reduce:after:transition-none\",\n        className\n      )}\n      {...props}\n    />\n  )\n);\nSwitch.displayName = \"Switch\";\n"
    }
  ]
}