Spaces:
Paused
Paused
File size: 400 Bytes
ec17af3 | 1 2 3 4 5 6 7 8 9 10 11 12 | 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>
);
|