{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch-11",
  "type": "registry:component",
  "title": "Switch 11",
  "description": "Switch 11. A toggle control that allows users to switch between two states, typically on or off.",
  "dependencies": [
    "react-icons"
  ],
  "registryDependencies": [
    "label",
    "switch"
  ],
  "files": [
    {
      "path": "components/watermelon/switch-11.tsx",
      "type": "registry:component",
      "content": "import { useState } from 'react';\n\nimport { FiRefreshCw } from 'react-icons/fi';\n\nimport { Label } from '@/components/base-ui/label';\nimport { Switch } from '@/components/base-ui/switch';\n\nconst Switch11 = () => {\n  const [checked, setChecked] = useState(true);\n\n  return (\n    <div\n      data-state={checked ? 'checked' : 'unchecked'}\n      className=\"group 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    >\n      <Switch\n        id=\"auto-sync\"\n        checked={checked}\n        onCheckedChange={setChecked}\n        className=\"order-1 after:absolute after:inset-0 data-[size=default]:h-4 data-[size=default]:w-6 [&_span]:group-data-[size=default]/switch:size-3 data-[state=checked]:[&_span]:translate-x-2.5 data-[state=checked]:[&_span]:rtl:-translate-x-2.5\"\n        aria-describedby=\"auto-sync-description\"\n      />\n\n      <div className=\"flex grow items-center gap-3\">\n        <FiRefreshCw className=\"text-muted-foreground rotate-0 self-start transition-transform duration-700 ease-in-out group-data-[state=checked]:rotate-[360deg]\" />\n\n        <div className=\"grid grow gap-2\">\n          <Label htmlFor=\"auto-sync\">Auto Sync</Label>\n          <p\n            id=\"auto-sync-description\"\n            className=\"text-muted-foreground text-xs\"\n          >\n            Automatically sync your data across devices.\n          </p>\n        </div>\n      </div>\n    </div>\n  );\n};\n\nexport default Switch11;\n"
    }
  ]
}
