import * as React from 'react'; import { cn } from '../lib/cn'; interface ProgressProps extends React.HTMLAttributes { value?: number; indicatorClassName?: string; /** * When true, the bar shows an animated marquee instead of a fixed * width — useful when we know a job is running but don't yet know * the total size (e.g. a download whose Content-Length is unknown). */ indeterminate?: boolean; } const Progress = React.forwardRef( ({ className, value = 0, indicatorClassName, indeterminate = false, ...props }, ref) => { const clamped = Math.max(0, Math.min(100, value)); return (
{indeterminate ? (
) : (
)}
); }, ); Progress.displayName = 'Progress'; export { Progress };