Spaces:
Paused
Paused
Download apps/web/src/components/ui/progress.tsx from nathycodes/presentercoach: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/apps/web/src/components/ui/progress.tsx
- Command line
-
hf download hf://spaces/nathycodes/presentercoach/apps/web/src/components/ui/progress.tsx
-
curl -L -o progress.tsx https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/apps/web/src/components/ui/progress.tsx
400 Bytes
| import * as React from "react"; | |
| import { cn } from "@/lib/utils"; | |
| export const Progress = ({ value, className }: { value: number; className?: string }) => ( | |
| <div className={cn("h-2 w-full overflow-hidden rounded-full bg-ink/10", className)}> | |
| <div | |
| className="h-full rounded-full bg-ember transition-all" | |
| style={{ width: `${Math.min(100, Math.max(0, value))}%` }} | |
| /> | |
| </div> | |
| ); | |