{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "switch",
  "title": "Switch",
  "description": "Tetsu switch on @ui-sdk/react, styled with the @tetsustudio/tokens variables.",
  "dependencies": [
    "@ui-sdk/react@0.1.0-beta.5",
    "cn@^0.4.0"
  ],
  "files": [
    {
      "path": "registry/ui/switch.tsx",
      "content": "import * as React from 'react'\nimport { cn } from 'cn'\nimport { Switch as SwitchPrimitive, SwitchThumb } from '@ui-sdk/react/switch'\n\ntype SwitchProps = Omit<React.ComponentProps<typeof SwitchPrimitive>, 'className' | 'children'> & {\n  className?: string\n}\n\nfunction Switch({ className, ...props }: SwitchProps) {\n  return (\n    <SwitchPrimitive\n      className={cn(\n        'peer group/switch relative inline-flex h-6 w-11 shrink-0 items-center rounded-full border border-transparent transition-all outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 data-checked:bg-brand data-disabled:cursor-not-allowed data-disabled:opacity-50 data-unchecked:bg-input',\n        className,\n      )}\n      {...props}\n    >\n      <SwitchThumb className=\"pointer-events-none block h-4 w-4 translate-x-1 rounded-full bg-(--switch-thumb-off) ring-0 transition-transform data-checked:translate-x-6 data-checked:bg-(--switch-thumb-on)\" />\n    </SwitchPrimitive>\n  )\n}\n\nexport { Switch }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}