{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "duck-switch", "title": "Duck Switch", "description": "Toggle built on a real checkbox, so it submits with the form. Off it rests on the bank, on the track floods lime and a ripple spreads from the entry point. Sizes: sm, default.", "registryDependencies": [ "@duck/theme" ], "files": [ { "path": "registry/duck/ui/duck-switch.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\n/**\n * DuckSwitch — the duck entering the water.\n *\n * Off, it rests on the bank: an empty track with the 3px vinyl outline. On, it\n * slides in, the track floods lime, and one ripple spreads from the entry point\n * and dies. The knob travels further than its own width, so the state is\n * readable without colour.\n *\n * It is a real checkbox underneath, so it submits with the form, pairs with a\n * \n );\n}\n\nexport { DuckSwitch };\n", "type": "registry:ui" } ], "type": "registry:ui" }