DialGauge
Extruded 270° gauge for the Industry theme.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Extruded 270° gauge for the Industry theme.
Accessibility
Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.
Install and import
npx shadcn@latest add @prism/dial-gauge
import { DialGauge } from '@/components/prism/DialGauge';
In a no-build prototype, read it from the bundle instead: const { DialGauge } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
value | number | — | |
min | number | — | |
max | number | — | |
size | number | — | Outer diameter in px. |
thickness | number | — | Arc thickness in px. Thinner arc → larger clear centre for more content. |
unit | string | — | Short unit appended to the readout, e.g. "°C". |
label | React.ReactNode | — | Small uppercase caption under the readout. |
color | string | — | Series colour for the lit arc. |
ticks | boolean | — | Machined tick ring outside the arc. |
children | React.ReactNode | — | Custom centre content, sized to the inner circle. Overrides the default value/label readout — use for extra text or controls inside the dial. |
formatValue | (v: number) => React.ReactNode | — | |
caption | string | — | Accessible name; combined with the value. |