DataVal

components/data/Val.vue

Metric card with label, formatted value, inline slot, health coloring, and optional radio-button mode.

Success Rate
99.7
%
Requests
24K
Loading
components/data/Val.vue

Usage

<DataVal label = "—" :val = "val" metric = "—" size = "StatSizes.SMALL" kind = "StatTypes.PERCENTAGE" :showHealth = "false" :isHealthy = "true" :isChecked = "false" :fitHeight = "false" :fitWidth = "false" > Content here </DataVal>

Props

PropTypeDefaultDescription
labelString''Label text
val[Number, null]nullNumeric value (null shows spinner)
metricString''Unit/metric label suffix
sizeStringStatSizes.SMALLSMALL or MED
kindStringStatTypes.PERCENTAGEPERCENTAGE, NUM_SHORT, or NUM_FULL
showHealthBooleanfalseEnable health-based text color
isHealthyBooleantrueHealthy (green) or unhealthy (red)
isCheckedBooleanfalseRadio-button selected state
fitHeightBooleanfalseFill parent height
fitWidthBooleanfalseFill parent width

Events

EventDescription
checkEmitted on click when used as a selectable tile

Slots

SlotDescription
inlineContent placed top-right of the value
defaultContent below the value

Related