{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch5",
  "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/5/index.tsx",
      "content": "\"use client\";\n\nimport { useId, useState } 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  const [checked, setChecked] = useState<boolean>(true);\n\n  return (\n    <div className=\"inline-flex items-center gap-2\">\n      <Switch aria-label=\"Toggle switch\" checked={checked} id={id} onCheckedChange={setChecked} />\n      <Label className=\"text-sm font-medium\" htmlFor={id}>\n        {checked ? \"On\" : \"Off\"}\n      </Label>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/switch5.tsx"
    }
  ],
  "type": "registry:component"
}