Spaces:
Paused
Paused
Download apps/web/src/components/ui/toggle.tsx from nathycodes/presentercoach: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/apps/web/src/components/ui/toggle.tsx
- Command line
-
hf download hf://spaces/nathycodes/presentercoach/apps/web/src/components/ui/toggle.tsx
-
curl -L -o toggle.tsx https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/apps/web/src/components/ui/toggle.tsx
424 Bytes
| import * as React from "react"; | |
| import { cn } from "@/lib/utils"; | |
| export const Toggle = ({ pressed, className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement> & { pressed?: boolean }) => ( | |
| <button | |
| className={cn( | |
| "rounded-full border px-4 py-2 text-xs font-semibold transition", | |
| pressed ? "border-ember/50 bg-ember/20" : "border-ink/10 bg-white/60", | |
| className | |
| )} | |
| {...props} | |
| /> | |
| ); | |