Gauge
Metrics & Status

Gauge

Semicircular gauge for a headline attainment or utilization readout. Heavier than ProgressCircle; meant to be the focus of a card.

Props

Gauge extends HTMLAttributes<HTMLDivElement>. Renders as role="meter".

GaugeProps props
PropTypeDefaultDescription
valuenumber—Fill percentage, 0–100.
sizenumber132Overall width in px.
strokeWidthnumber9Arc thickness.
toneProgressTone"primary""primary" | "ok" | "warn" | "err".
targetnumber—Optional target/threshold marker on the arc, 0–100.
childrenReactNode—Center content. Defaults to the rounded percentage.
subReactNode—Dim line under the center readout.
startLabelReactNode—Label under the left arc end.
endLabelReactNode—Label under the right arc end.

Examples

Basic

Gauge basic

With target

Gauge with target

With sub and labels

Gauge with sub and labels

Tone variants

Gauge tones
ImportTSX
import { Gauge } from "@solarius/onset";
import type { GaugeProps, ProgressTone } from "@solarius/onset";