mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
25 lines
575 B
TypeScript
25 lines
575 B
TypeScript
interface StepIndicatorProps {
|
|
currentStep: number;
|
|
totalSteps: number;
|
|
}
|
|
|
|
export function StepIndicator({
|
|
currentStep,
|
|
totalSteps,
|
|
}: StepIndicatorProps) {
|
|
return (
|
|
<div className="flex items-center justify-center gap-2 mb-8">
|
|
{Array.from({ length: totalSteps }).map((_, index) => (
|
|
<div
|
|
key={index}
|
|
className={`h-2 rounded-full transition-all duration-300 ${
|
|
index <= currentStep
|
|
? "w-8 bg-brand-500"
|
|
: "w-2 bg-muted-foreground/30"
|
|
}`}
|
|
/>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|