Flab UIv0.0.2
MobileA2UI

Gauge

An SVG arc dial for a single score. Hand-drawn as one path rather than pulled from a chart engine, so it stays sharp, needs no canvas, and renders on the server. The value is announced through meter semantics and always shown as text.

86Health score
62Coverage
28Capacity
<Gauge value={86} caption="Health score" tone="success" /><Gauge value={62} caption="Coverage" tone="warning" /><Gauge value={28} caption="Capacity" tone="danger" />

Custom display

4.6Avg rating
<Gauge value={4.6} min={0} max={5} display="4.6" caption="Avg rating" size={120} />

Props

PropTypeDefaultNotes
valuenumber—Current value within [min, max].
minnumber0Range floor.
maxnumber100Range ceiling.
displayReactNode—Centred figure; defaults to the rounded value.
captionReactNode—Small caption under the figure.
toneBadgeTone'success'Arc colour.
sizenumber140Diameter in px.