17 lines
440 B
Vue
17 lines
440 B
Vue
<template>
|
||
<div class="flex items-center gap-2" :title="`${parts} part${parts === 1 ? '' : 's'}`">
|
||
<div class="flex h-2 w-16 gap-[2px]">
|
||
<div
|
||
v-for="n in parts"
|
||
:key="n"
|
||
class="flex-1 rounded-[1px] bg-accent"
|
||
/>
|
||
</div>
|
||
<span class="font-mono text-[11px] tabular-nums text-muted">{{ parts }}×</span>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
defineProps<{ parts: number }>()
|
||
</script>
|