{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "switch", "type": "registry:ui", "title": "Switch", "description": "A customizable switch component", "dependencies": [ "clsx", "tailwind-merge", "@base-ui/react" ], "registryDependencies": [ "classes" ], "files": [ { "path": "src/registry/pure-ui/ui/switch/index.tsx", "content": "\"use client\";\r\n\r\nimport { Switch as SwitchPrimitive } from \"@base-ui/react/switch\";\r\n\r\nimport { cn } from \"@/lib/classes\";\r\n\r\ninterface SwitchProps extends SwitchPrimitive.Root.Props {\r\n reduceMotion?: boolean;\r\n isInteractive?: boolean;\r\n size?: \"sm\" | \"md\" | \"lg\";\r\n}\r\n\r\nfunction Switch({\r\n reduceMotion = false,\r\n isInteractive = false,\r\n size = \"md\",\r\n className,\r\n ...props\r\n}: SwitchProps) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport { Switch };\r\n", "type": "registry:ui", "target": "components/ui/switch.tsx" } ] }