1 ? fillTo / ((total - 1) * ROW) : 0 }}
className={cn(
"absolute left-1/2 w-0.5 -translate-x-1/2 origin-top rounded-full transition-colors duration-500",
complete ? "bg-success" : "bg-primary",
)}
initial={false}
style={{ top: ROW / 2, height: (total - 1) * ROW }}
transition={reduce ? { duration: 0 } : { type: "spring", stiffness: 170, damping: 26 }}
/>
{steps.map((s, i) => {
const isDone = i < done;
const isActive = i === done;
return (
-
);
})}