073
A dial with threshold bands and a target notch: the needle springs to each new reading, the fill takes the colour of the band it lands in, and hovering a band names its range.
akagauge·dial·meter
Run this in any project set up for the shadcn CLI. It copies the Radial Gauge source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/radial-gauge.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { RadialGauge } from "@/components/radial-gauge";
export default function Page() {
return <RadialGauge />;
}A free React component in the Numbers collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Radial Gauge source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| valuerequired | number | — |
| min | number | 0 |
| max | number | 100 |
| target | number | — |
| bands | GaugeBand[] | defaultBands |
| label | string | "CPU" |
| unit | string | "%" |
| caption | string | — |
| action | ReactNode | — |
| children | ReactNode | — |
| className | string | — |