React Gauge

An instrument dial for the values a bar can't express — temperature against its limit, pressure in its safe window, humidity in a cleanroom band. A 240° arc with tick marks, operating bands (ok / warn / crit) painted on the arc, a needle, and a mono readout that takes the color of the active band, so state is carried by the number and the arc, never the needle alone. Distinct from Progress's circular gauge, which shows completion; this shows a measurement in context.

0255075100125
87.0°CJunction temp
01.22.43.64.86
2.4barChamber pressure
020406080100
44%RHCleanroom humidity
020406080100
73%Utilization

The junction gauge drifts live — watch the readout change color as it crosses the 85 °C warning band.

Installation

npx shadcn@latest add gauge.json

Usage

Loading...

Props

PropTypeDefaultDescription
valuenumberCurrent value (clamped to min/max)
min / maxnumber0/100Scale range
bandsGaugeBand[][]{ from, to, tone: 'ok'\
unitstringUnit shown after the readout
labelstringUppercase label under the readout
sizenumber160Diameter in px
precisionnumberReadout decimals