DataStat

components/data/Stat.vue

Large numeric statistic with label, formatted value, loading spinner, and optional health coloring.

Success Rate
99.7%
Requests
24K
Latency
components/data/Stat.vue

Usage

<DataStat label = "—" :val = "val" size = "StatSizes.SMALL" kind = "StatTypes.PERCENTAGE" :showHealth = "false" :isHealthy = "true" />

Props

PropTypeDefaultDescription
labelString''Stat label
val[Number, null]nullNumeric value (null shows spinner)
sizeStringStatSizes.SMALLSMALL or MED
kindStringStatTypes.PERCENTAGEPERCENTAGE, NUM_SHORT, or NUM_FULL
showHealthBooleanfalseEnable health-based text color
isHealthyBooleantrueHealthy (green) or unhealthy (red)

Related