Spaces:
Sleeping
Sleeping
File size: 531 Bytes
3786a3f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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>
);
}
|