Skip to content

Segment Gauge

Fine radial segments illuminate around a precise numeric readout.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import SegmentGauge from "./SegmentGauge";
export default function Example() {
return (
<SegmentGauge
value={72}
min={0}
max={100}
segments={36}
label={"Capacity"}
unit={"%"}
color={"#d5b37e"}
trackColor={"#3a352d"}
size={260}
/>
);
}

Using Segment Gauge

Pass a bounded measurement through value, min and max. The gauge exposes native meter semantics and clamps the displayed value to the supplied range.

Use unit for a short suffix or formatValue for a custom display. Segment colour transitions respond to value changes and are disabled under reduced motion.

Props

NameTypeRequiredDefaultDescription
valuenumberNo0Current measurement.
minnumberNo0Lower bound.
maxnumberNo100Upper bound.
segmentsnumberNo36Number of radial marks, from 8 to 80.
labelstringNo"Progress"Visible and accessible meter label.
unitstringNo""Visible suffix next to the value.
formatValuefunctionNoundefinedFormats visible and accessible value text.
colorstringNo"#d5b37e"Active segment colour.
trackColorstringNo"#3a352d"Inactive segment colour.
sizenumberNo240Width in pixels, constrained by the container.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Signal Bars

Feedback

Sculpted signal bars rise and fall in a staggered rhythmic wave.

A quiet spectrum of rounded bars rises and falls in a travelling rhythm.

Fluid Meter

Feedback

A circular gauge fills with two gently moving layers of liquid.

Orbit Loader

Feedback

Three tilted rings turn around a pin of light while content loads.