RingGauge
COMPONENT

DATA VIZ / RINGGAUGE

RingGauge

All-in-one circular dial with multi-stop gradient strokes, centered metric readout, subtitle, and optional SF Symbol slot — ready for Pomodoro timers and goal widgets in a single element.

Signature#

SIGNATURE
<RingGauge
  value={78}
  total={100}
  size={108}
  lineWidth={10}
  gradientColors={["#0EA5E9", "#6366F1"]}
  centerText="78%"
  subText="Weekly"
/>
Gradient RingGauge · 108pt
78% Weekly

Props#

Inherits StyleProps:

valuenumberRequired
Current value.
totalnumberDefault 100
Target total.
sizenumberDefault 96
Outer dial diameter in points.
lineWidthnumberDefault 9
Arc stroke width in points.
colorstringDefault "theme.accent"
Solid arc color (overridden when gradientColors is set).
gradientColorsstring[]Optional
Multi-stop gradient array along the arc (e.g. ["#0EA5E9", "#6366F1"]).
trackColorstringDefault "theme.track"
Inactive track ring color.
centerTextstringOptional
Primary centered readout (e.g. "78%", "18:24", "6").
centerFontSizenumberOptional
Point size for centerText.
subTextstringOptional
Secondary caption directly below centerText.
subFontSizenumberOptional
Point size for subText.
iconstringOptional
Optional SF Symbol name inside the dial.
iconSizenumberOptional
Symbol point size.
textColorstringDefault "theme.ink"
Color for centered text and icon.

Example: Icon Slot vs. Gradient Dial#

TSX
<HStack spacing={16}>
  <RingGauge value={72} size={84}
    lineWidth={8} color="theme.warning"
    icon="flame.fill" centerText="720" />
  <RingGauge value={92} size={84}
    lineWidth={8}
    gradientColors={["#30D158", "#0EA5E9"]}
    centerText="18:24" subText="Focus" />
</HStack>
Icon Slot vs Gradient Dial
720
18:24 Focus

In Action#