Skip to content
caliper ui pro docs

Gauge

A dial for one value in a range, with named thresholds.

Pro

Service health

Latency within target

When to use

  • Health, capacity and scores that have meaningful zones.
  • A single status that deserves emphasis.

When not to use

  • A trend; use a line.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/gauge

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

Gauge

7 props
PropTypeDefault
label *string—
value *number—
minnumber0
maxnumber100
detailstring—
thresholdsreadonly GaugeThreshold[][]
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements and keeps aria-label, aria-valuemin, aria-valuemax, aria-valuenow, aria-valuetext and aria-hidden in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/gauge.md

The index of every part is at /llms.txt.

More in Core charts