diff --git a/src/components/ProgressBar.vue b/src/components/ProgressBar.vue index 49d31d8..a665734 100644 --- a/src/components/ProgressBar.vue +++ b/src/components/ProgressBar.vue @@ -1,41 +1,36 @@ - - - - - \ No newline at end of file + color: { + type: String, + default: "bg-blue-500", + }, + }, + computed: { + clampedValue() { + return Math.max(0, Math.min(this.value, 100)); + }, + }, +}; + + + \ No newline at end of file