Line data Source code
1 : <template>
2 2355 : <svg
3 : viewBox="0 0 16 16"
4 : fill="none"
5 : stroke-width="2"
6 : class="-rotate-90"
7 : aria-hidden="true"
8 : >
9 : <circle cx="8" cy="8" r="6" class="stroke-border" />
10 : <circle
11 : cx="8"
12 : cy="8"
13 : r="6"
14 : pathLength="100"
15 : :stroke-dasharray="`${percent} 100`"
16 : class="stroke-foreground"
17 : />
18 : </svg>
19 : </template>
20 :
21 : <script setup lang="ts">
22 : const { percent } = defineProps<{
23 : percent: number
24 : }>()
25 : </script>
|