Gauge
270° radial gauge for one bounded value (utilisation, load, score).
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
270° radial gauge for one bounded value (utilisation, load, score).
Accessibility
Each chart ships an accessible fallback (a visually-hidden data table / aria-label summary) so the data is available to screen readers, not just sighted users. Colour is paired with shape/label, never used alone.
Install and import
npx shadcn@latest add @prism/gauge
import { Gauge } from '@/components/prism/Gauge';
In a no-build prototype, read it from the bundle instead: const { Gauge } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
value | number | Yes | |
min | number | — | |
max | number | — | |
label | React.ReactNode | — | |
unit | string | — | |
size | number | — | |
thickness | number | — | |
segments | GaugeSegment[] | — | |
color | string | — | |
formatValue | (v: number) => React.ReactNode | — |