{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "switch", "type": "registry:ui", "title": "Switch", "description": "A control that allows the user to toggle between checked and not checked.", "dependencies": ["@radix-ui/react-switch"], "files": [ { "path": "registry/new-york/ui/switch.tsx", "content": "\"use client\";\n\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n \n \n );\n}\n\nexport { Switch };\n", "type": "registry:ui" } ] }