Skip to main content
Clever Ops

Number Radial Gauge

Determinate SVG radial gauge, a hairline token track, one primary arc drawn via pathLength, a tabular counted value at center and a mono label beneath.

Preview & code

Loading Number Radial Gauge preview

Installation

pnpm dlx shadcn@latest add @cleverui/number-radial-gauge

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { NumberRadialGauge } from '@/components/ui/number-radial-gauge'
Exampletsx
import { NumberRadialGauge } from '@/components/ui/number-radial-gauge'

export default function NumberRadialGaugeDemo() {
  return (
    <div className="mx-auto flex min-h-[420px] max-w-3xl flex-col items-center justify-center gap-12 px-6 py-16 sm:flex-row sm:items-end sm:gap-16">
      <NumberRadialGauge
        value={87}
        max={100}
        label="Seat utilization"
        suffix="%"
        size={168}
      />
      <div className="max-w-xs text-center sm:text-left">
        <p className="font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground sm:text-xs">
          Meridian Ops · Q2
        </p>
        <p className="mt-3 text-xl font-semibold tracking-tight text-balance text-foreground">
          Capacity that still has headroom
        </p>
        <p className="mt-2 text-sm leading-relaxed text-muted-foreground">
          Active seats against contracted volume across 214 workspaces. The
          arc and the center always agree, one motion value drives both.
        </p>
      </div>
    </div>
  )
}

API reference

NumberRadialGauge accepts the following props.

PropTypeDefaultDescription
value*numbercurrent value; the arc and center count both derive from it
maxnumber100value that maps to a full sweep
labelstringmono micro-label rendered beneath the gauge
suffixstring'%'unit glyph after the center value
sizenumber160rendered diameter in px; SVG scales via viewBox
arcWidthnumber3stroke width of the progress arc (the track stays a 1px hairline)
durationnumber1.2seconds for the synchronized arc sweep and count-up

…plus everything from React.HTMLAttributes<HTMLDivElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Number Radial Gauge component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/number-radial-gauge`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Number Radial Gauge require?

Number Radial Gauge uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Number Radial Gauge to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services