30 lines
693 B
Vue
30 lines
693 B
Vue
<script setup lang="ts">
|
|
withDefaults(
|
|
defineProps<{
|
|
label: string
|
|
value: string
|
|
hint?: string
|
|
tone?: 'default' | 'accent'
|
|
mono?: boolean
|
|
}>(),
|
|
{
|
|
hint: '',
|
|
tone: 'default',
|
|
mono: true,
|
|
},
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex flex-col rounded-lg border border-[#1e3a52] bg-[#0e2233] p-2.5">
|
|
<span class="text-[11px] text-[#94A3B8]">{{ label }}</span>
|
|
<span
|
|
class="mt-0.5 text-lg font-bold leading-tight"
|
|
:class="[tone === 'accent' ? 'text-[#00C3CD]' : 'text-[#FFFFFF]', mono ? 'font-mono' : '']"
|
|
>
|
|
{{ value }}
|
|
</span>
|
|
<span v-if="hint" class="text-[10px] text-[#64748B]">{{ hint }}</span>
|
|
</div>
|
|
</template>
|