{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch4",
  "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/4/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\">\n      <Switch\n        className=\"[&_span]:border-input h-3! w-9! border-none [&_span]:size-4! [&_span]:border [&_span]:shadow-sm [&_span]:data-[state=checked]:translate-x-5\"\n        id={id}\n      />\n      <Label className=\"sr-only\" htmlFor={id}>\n        M2-style switch\n      </Label>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/switch4.tsx"
    }
  ],
  "type": "registry:component"
}