{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "sf-switch", "title": "SF Switch", "description": "Square switch with 2px borders, primary checked state", "registryDependencies": [ "switch" ], "files": [ { "path": "components/sf/sf-switch.tsx", "content": "\"use client\";\n\nimport { Switch } from \"@/components/ui/switch\";\nimport { cn } from \"@/lib/utils\";\n\n/**\n * Toggle switch input — FRAME layer form primitive.\n *\n * Radix Switch with SF styling: sharp corners (rounded-none), 2px\n * foreground border, primary fill on checked state, transparent when\n * unchecked, and sf-toggle-snap snap animation on the thumb.\n * Inherits all Radix SwitchProps.\n *\n * @param className - Merged via cn() after base classes\n *\n * @example\n * \n * Enable notifications\n */\nexport function SFSwitch({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n span]:sf-toggle-snap\",\n className\n )}\n {...props}\n />\n );\n}\n", "type": "registry:ui" } ], "meta": { "layer": "frame", "pattern": "A" }, "type": "registry:ui" }