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
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', 'duration', or custom)
unitSizeString''Unit font size override
showFullNumberBooleanfalseShow unabbreviated number
healthModeFunctionhealthModes.NEVER_HOTHealth evaluation function

Related