{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch2",
  "title": "Switch",
  "description": "A control that allows the user to toggle between on and off. Every switch variant toggles reliably with Radix UI and Base UI semantics.",
  "registryDependencies": [
    "label",
    "switch"
  ],
  "files": [
    {
      "path": "contents/components/switch/2/index.tsx",
      "content": "import { useId } from \"react\";\n\nimport { Label } from \"@/components/ui/label\";\nimport { Switch } from \"@/components/ui/switch\";\n\nexport default function SwitchComponent() {\n  const id = useId();\n  return (\n    <div className=\"inline-flex items-center gap-2 [--primary:var(--color-indigo-500)] [--ring:var(--color-indigo-300)] in-[.dark]:[--primary:var(--color-indigo-500)] in-[.dark]:[--ring:var(--color-indigo-900)]\">\n      <Switch defaultChecked id={id} />\n      <Label className=\"sr-only\" htmlFor={id}>\n        Colored switch\n      </Label>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/switch2.tsx"
    }
  ],
  "type": "registry:component"
}