Spaces:
Sleeping
Sleeping
Download frontend/src/components/ui/progress.tsx from yamiclaws/advanced-rag-api: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/yamiclaws/advanced-rag-api/resolve/main/frontend/src/components/ui/progress.tsx
- Command line
-
hf download hf://spaces/yamiclaws/advanced-rag-api/frontend/src/components/ui/progress.tsx
-
curl -L -o progress.tsx https://huggingface.co/spaces/yamiclaws/advanced-rag-api/resolve/main/frontend/src/components/ui/progress.tsx
531 Bytes
| import * as React from 'react'; | |
| import { cn } from '@/lib/utils'; | |
| export function Progress({ | |
| value = 0, | |
| className, | |
| indicatorClassName, | |
| }: { | |
| value?: number; | |
| className?: string; | |
| indicatorClassName?: string; | |
| }) { | |
| return ( | |
| <div className={cn('h-2 w-full overflow-hidden rounded-full bg-bg-elevated', className)}> | |
| <div | |
| className={cn('h-full rounded-full bg-accent-violet transition-all', indicatorClassName)} | |
| style={{ width: `${Math.min(100, Math.max(0, value))}%` }} | |
| /> | |
| </div> | |
| ); | |
| } | |