{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "switch", "title": "Switch", "description": "A control that allows the user to toggle between checked and not checked.", "dependencies": [ "@base-ui/react" ], "registryDependencies": [ "vectorstudio-ir/ui/utils" ], "files": [ { "path": "registry/base-nova/ui/switch.tsx", "content": "import { Switch as SwitchPrimitive } from \"@base-ui/react/switch\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Switch({\n className,\n size = \"default\",\n ...props\n}: SwitchPrimitive.Root.Props & {\n size?: \"sm\" | \"default\"\n}) {\n return (\n \n \n \n )\n}\n\nexport { Switch }\n", "type": "registry:ui", "target": "@components/switch.tsx" } ], "categories": [ "forms" ], "type": "registry:ui" }