{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch",
  "type": "registry:component",
  "title": "Switch",
  "description": "The knob is a little face. It sleeps when off and wakes up when you flip it on.",
  "categories": [
    "inputs"
  ],
  "dependencies": [
    "@plop-ui/react",
    "@plop-ui/fonts"
  ],
  "registryDependencies": [
    "https://plopui.com/r/plop-setup.json"
  ],
  "files": [
    {
      "path": "registry/plopui/switch-example.tsx",
      "type": "registry:component",
      "target": "components/plop/switch-example.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Switch } from \"@plop-ui/react\";\n\n/** Switch: a face that sleeps when off and wakes up when on. Clicking the label toggles it too. */\nexport function SwitchExample() {\n  const [sharing, setSharing] = useState(false);\n  return (\n    <>\n      <Switch checked={sharing} onCheckedChange={setSharing} color=\"mint\">\n        Share live location\n      </Switch>\n      <Switch defaultChecked>Email me replies</Switch>\n    </>\n  );\n}\n"
    }
  ],
  "docs": "Example: components/plop/switch-example.tsx. Docs: https://plopui.com/docs/components/switch"
}
