Gauge

Radial percentage gauge. A single measurement arc over a subtle track with a centered mono readout, in 3 sizes and 3 semantic color variants; the arc sweeps in and the value counts up in sync on first view.

Sizes
0%0%0%
Variants
0%CPU0%FUEL0%O2

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/andromeda-gauge
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
valuenumber68The reading. Clamped to 0..max. Defaults to a demo reading so the bare component renders meaningfully.
maxnumber100Full scale — the arc shows value/max.
size'sm'|'md'|'lg''md'One of: sm, md, lg.
variant'accent'|'warning'|'fault''accent'Arc color by meaning: accent = live/healthy, warning = orange, fault = red.
unitstring'%'Suffix after the readout, muted + smaller. Pass '' for a unitless reading.
labelstring-Optional code label below the value inside the circle (mono xs, muted, uppercase). Centered when showValue is false.
showValuebooleantrue-
ariaLabelstring-Overrides the generated "<label or Gauge> <value> of <max><unit>" description.
classNamestring-Additional CSS classes applied to the root element.
styleReact.CSSProperties-Inline styles applied to the root element.

More Andromeda components