ReadonlyanimatedWhether value changes are animated.
When true, the gauge smoothly interpolates between old and new values.
ReadonlyanimationDuration of the value animation in milliseconds.
Only applies when animated is true.
ReadonlyariaAccessible label for the gauge.
Protected ReadonlyclampedValue clamped between min and max.
ReadonlydetailLevel of visual detail strategies should render.
ReadonlyfitWhether the gauge fills its parent container.
When true, the gauge uses a ResizeObserver to track the host
element's dimensions and re-renders automatically on resize.
The width and height inputs are used as fallbacks only.
ReadonlyformatOptional formatter for numeric values displayed by the strategy.
When provided, strategies use this callback for all numeric labels (value readout, tick marks, min/max). This lets consumers control locale, precision, currency symbols, etc.
ReadonlyheightHeight in CSS pixels.
ReadonlymaxScale maximum (default 100).
ReadonlyminScale minimum (default 0).
Protected ReadonlysizeTarget render size — observed dimensions when fit, else explicit inputs.
ReadonlystrategyPresentation strategy that renders the gauge.
ReadonlythresholdsOptional reference values rendered as marker lines on the gauge.
Strategies draw a thin reference line at each threshold position. Useful for target set-points, limits, or alarm values.
ReadonlyunitUnit label displayed beside the value (e.g. "km/h", "dB").
ReadonlyvalueCurrent gauge value. Clamped to [min, max].
ReadonlywidthWidth in CSS pixels.
ReadonlyzonesColoured zones overlaid on the gauge face.
Configurable gauge component that delegates rendering to a GaugePresentationStrategy.
The component clamps the
valuebetweenminandmax, resolves design tokens from the host element's CSS context, and passes everything to the active strategy. The strategy returns either anSVGSVGElementor rawImageData, which the component inserts into the DOM.Built-in strategies:
AnalogGaugeStrategy— circular speedometerVuMeterStrategy— vertical LED barDigitalGaugeStrategy— seven-segment numeric readoutCustom strategies: extend
GaugePresentationStrategyand implementrender()to produce your own SVG or bitmap output.Example