{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch10",
  "title": "Switch",
  "description": "Switch built with shadcn/ui.",
  "registryDependencies": [
    "label",
    "switch"
  ],
  "files": [
    {
      "path": "contents/components/switch/10/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=\"border-input has-data-[state=checked]:border-primary/50 relative flex w-full items-start gap-2 rounded-md border p-4 shadow-xs outline-none\">\n      <Switch\n        aria-describedby={`${id}-description`}\n        className=\"order-1 after:inset-0\"\n        id={id}\n        size=\"sm\"\n      />\n      <div className=\"grid grow gap-2\">\n        <Label htmlFor={id}>\n          Label{\" \"}\n          <span className=\"text-muted-foreground text-xs leading-[inherit] font-normal\">\n            (Sublabel)\n          </span>\n        </Label>\n        <p className=\"text-muted-foreground text-xs\" id={`${id}-description`}>\n          A short description goes here.\n        </p>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/switch10.tsx"
    }
  ],
  "type": "registry:component"
}