interface ProgressBarProps {
className?: string
backgroundClassName?: string
foregroundClassName?: string
animationDelay: string
reverse?: boolean
}
export function ProgressBar({
className = 'h-4',
backgroundClassName = 'bg-foreground-muted/80',
foregroundClassName = 'bg-brand-default',
animationDelay,
reverse = false,
}: ProgressBarProps) {
return (
{/* Background bar (static) */}
{/* Animated foreground bar */}
)
}
interface DecorativeProgressBarProps {
/** Whether to reverse the animation direction */
reverse?: boolean
/** Whether to align to start or end */
align?: 'start' | 'end'
}
export function DecorativeProgressBar({
reverse = false,
align = 'start',
}: DecorativeProgressBarProps) {
// Define the three progress bar configurations
const progressBars = [
{
height: 'h-4',
bgColor: 'bg-foreground-muted/80',
fgColor: 'bg-brand-default',
animationDelay: '0s',
},
{
height: 'h-8',
bgColor: 'bg-foreground-muted/50',
fgColor: 'bg-brand-500',
animationDelay: '0.3s',
},
{
height: 'h-12',
bgColor: 'bg-foreground-muted/20',
fgColor: 'bg-brand-300',
animationDelay: '0.6s',
},
]
return (
{progressBars.map((bar, index) => (
))}
)
}