repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | "use client" |
| #2 | |
| #3 | import * as React from "react" |
| #4 | import * as SwitchPrimitives from "@radix-ui/react-switch" |
| #5 | |
| #6 | import { cn } from "@/lib/utils" |
| #7 | |
| #8 | const Switch = React.forwardRef< |
| #9 | React.ElementRef<typeof SwitchPrimitives.Root>, |
| #10 | React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> |
| #11 | >(({ className, ...props }, ref) => ( |
| #12 | <SwitchPrimitives.Root |
| #13 | className={cn( |
| #14 | "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", |
| #15 | className |
| #16 | )} |
| #17 | {...props} |
| #18 | ref={ref} |
| #19 | > |
| #20 | <SwitchPrimitives.Thumb |
| #21 | className={cn( |
| #22 | "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0" |
| #23 | )} |
| #24 | /> |
| #25 | </SwitchPrimitives.Root> |
| #26 | )) |
| #27 | Switch.displayName = SwitchPrimitives.Root.displayName |
| #28 | |
| #29 | export { Switch } |
| #30 |