Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Gauge

A radial meter with role=meter. Stroke weight, caps and tick marks come from the style.

OriginalsDumb extras
64%CPU load
99.2%Uptime
412ms p95
$ pnpm dlx shadcn@latest add @dumb/gauge

Needs the @dumb registry in components.json and the style tokens. See Installation.

import { Gauge } from "@/components/ui/gauge"
<Gauge value={64} label="CPU load" format={(v) => `${v}%`} />

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

Gauge

PropTypeDefault
valueextranumber

Current value.

-
min / maxextranumber

Range.

0 / 100
labelextrastring

Accessible name and caption.

-
formatextra(value: number) => string

Formats the center number and aria-valuetext.

-
toneextra"primary" | "success" | "warning" | "destructive"

Color of the value arc.

"primary"