Files
Noel Sabia 8d687ad05b
ci / check (push) Successful in 1m17s
ci / check (pull_request) Successful in 1m13s
feat: add operational use cases console
2026-11-14 21:39:15 +01:00

35 lines
823 B
Vue

<script setup lang="ts">
withDefaults(
defineProps<{
value: number
tone?: 'accent' | 'muted' | 'subtle'
label?: string
height?: 'sm' | 'md'
}>(),
{
tone: 'accent',
label: '',
height: 'sm',
},
)
</script>
<template>
<div
class="w-full overflow-hidden rounded-full border border-white/10 bg-[#081723]"
:class="height === 'md' ? 'h-2' : 'h-1.5'"
role="img"
:aria-label="label || `${Math.round(value)} percent`"
>
<div
class="h-full rounded-full transition-all duration-500"
:class="{
'bg-[#00C3CD] shadow-[0_0_8px_rgba(0,195,205,0.55)]': tone === 'accent',
'bg-[#94A3B8]': tone === 'muted',
'bg-[#475569]': tone === 'subtle',
}"
:style="{ width: `${Math.max(0, Math.min(100, value))}%` }"
/>
</div>
</template>