{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"corded-switch","title":"Corded Switch","description":"A labeled Discord-inspired boolean switch.","dependencies":["@base-ui/react"],"registryDependencies":["utils","corded-theme"],"files":[{"path":"registry/default/ui/corded-switch.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Switch } from \"@base-ui/react/switch\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport type CordedSwitchProps = Omit<Switch.Root.Props, \"className\"> & { label: string; description?: string; className?: string }\n\nexport function CordedSwitch({ label, description, className, disabled, ...props }: CordedSwitchProps) {\n  return <label className={cn(\"mana-switch\", className)} data-disabled={disabled ? \"\" : undefined}><span className=\"mana-switch-body\"><span className=\"mana-switch-label mana-text-sm-medium\">{label}</span>{description ? <span className=\"mana-switch-description mana-text-xs-normal\">{description}</span> : null}</span><Switch.Root disabled={disabled} className=\"mana-switch-track\" {...props}><Switch.Thumb className=\"mana-switch-thumb\" /></Switch.Root></label>\n}\n","type":"registry:ui","target":"components/ui/corded-switch.tsx"}],"type":"registry:ui"}