add progress bar component and styling

This commit is contained in:
Novattz
2025-11-12 15:03:07 +01:00
parent 0a5f00d3fb
commit 9f3cf1cb1f
3 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
interface ProgressBarProps {
progress: number
}
/**
* Simple progress bar component
*/
const ProgressBar = ({ progress }: ProgressBarProps) => {
return (
<div className="progress-container">
<div className="progress-bar">
<div
className="progress-fill"
style={{ width: `${Math.min(progress, 100)}%` }}
/>
</div>
<span className="progress-text">{Math.round(progress)}%</span>
</div>
)
}
export default ProgressBar