Skip to main content

DialGauge

Extruded 270° gauge for the Industry theme.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
valuenumber—
minnumber—
maxnumber—
sizenumber—Outer diameter in px.
thicknessnumber—Arc thickness in px. Thinner arc → larger clear centre for more content.
unitstring—Short unit appended to the readout, e.g. "°C".
labelReact.ReactNode—Small uppercase caption under the readout.
colorstring—Series colour for the lit arc.
ticksboolean—Machined tick ring outside the arc.
childrenReact.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—
captionstring—Accessible name; combined with the value.