Skip to content

Gauge

A semicircle meter for a single value. Server load below is honest sample data, rendered as a static SVG.

Server load

<Gauge label="Server load" value={75} />

Custom range

Pass min, max, and size to rescale the dial.

<Gauge label="Storage" value={30} min={10} max={50} size={240} />

Props

PropTypeDefaultDescription
valuenumber-Needle value; clamped into [min, max].
minnumber0Range floor.
maxnumber100Range ceiling.
labelstring"Gauge"Accessible name on the meter.
sizenumber200viewBox edge; the SVG scales to 100%.
classstring-Style passthrough.

Static honesty

Static SVG, no needle animation. The fill arc follows the gauge angle over a fixed semicircle track. Out-of-range values clamp both the arc and the displayed number; 0-to-100 ranges print a percent sign.

Accessibility