YuhuanStudioYunUIDocs
Data Display

Gauge

Circular progress ring for a single 0–100 percentage; value or custom label in the center.

A circular progress ring for a single 0–100 percentage — GPU utilization, cache hit rate, disk usage. Pure SVG, with the value rendered in the center (or your own label). tone colors the arc from the design tokens; color overrides it. Pair a few of them for a compact hardware dashboard.

Import

tsx
1import { Gauge } from "@yuhuanowo/yunui";

Basic

Gauge

72%

Tones and size

Drive the arc color with tone (typically from a threshold) and scale with size / thickness.

Tones

38%
71%
94%

Custom label

Pass any node as label to replace the percentage, or null to hide it.

Label

64%
CACHE

Props

PropTypeDefaultDescription
ariaLabelstringAccessible name, when `label` is a node rather than a string. Radix aside, a `role="progressbar"` with no name announces a bare percentage.
classNamestring
colorstringExplicit CSS color for the arc, overriding `tone`.
counterClockwisebooleanfalseStart the arc from the top and sweep clockwise (default) or counter-clockwise.
labelReactNodeCenter content. Defaults to the rounded percentage; pass `null` to hide.
sizenumber72Diameter in px.
thicknessnumber6Ring thickness in px.
tone"accent" | "success" | "warning" | "error" | "info" | "neutral"accentSemantic arc color. Ignored when `color` is set.
value*numberProgress, 0–100 (clamped).

On this page