Skip to content
PreviewThe context meter in a composer's footer. Use more steps it through its levels: yellow from 60%, red from 85%.
Describe a change, @ to add files

ProgressRing

valuerequired
number
Fraction filled, 0..1 (clamped).
size
"sm" | "md" | "lg" | "text"
Default: "md"
12 / 14 / 16 px, or text: in an icon's slot, the size and stroke of the icon of the text style it stands in. The context meter.
level
"normal" | "warm" | "hot"
Colour level. Default: derived from value with warmAt / hotAt.
warmAt
number
Default: 0.6
Yellow from here.
hotAt
number
Default: 0.85
Red from here.
label
string
Accessible name ("Context used"). With a label the ring is a meter (value, min, max and valueText); without one it is decorative, for use inside a labelled button.
valueText
string
Spoken value, e.g. "61k of 1,008k tokens". Default: the rounded percentage.
mark
number
A tick at this fraction, 0..1.
filled
boolean
Default: false
The value as a filled sector inside the track, not an arc on it: a meter at rest that never reads as a spinner.
rootStyle
RootStyle<ProgressRingKnobs>
Typed StyleX override: layout and the --progress-ring-* knobs.

Rest props go to <span> props and render.

State machine

PreviewNo context has been used.