DataMetricValue

components/data/metric/Value.vue

Flexible numeric display with dynamic font sizing, unit formatting, health mode, and loading spinner.

99.7
2.29
MB
$
4.2k
0
components/data/metric/Value.vue

Usage

<DataMetricValue :val = "val" :size = "40" weight = "—" unit = "—" unitSize = "—" :showFullNumber = "false" :healthMode = "healthModes.NEVER_HOT" />

Props

PropTypeDefaultDescription
val[Number, null]nullNumeric value (null shows spinner)
sizeNumber40Font size in pixels
weightString''Font weight override
unitString''Unit label — 'bytes' and 'duration' format the value; '$' renders before the number ($331, $4.2k); any other string is a dimmed suffix
unitSizeString''Unit font size override
showFullNumberBooleanfalseShow unabbreviated number
healthModeFunctionhealthModes.NEVER_HOTHealth evaluation function

Related

Qpoint Brand Style Guide