Progress ring
A determinate circular progress indicator. An SVG ring draws its value arc with the stroke-dashoffset technique, sweeping clockwise from 12 o'clock, with a centered percentage. For the indeterminate case (unknown or ongoing work), reach for Spinner instead.
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece progress-ring
Zero dependencies — all geometry is computed in the component. Requires the pieces.css tokens merged into your app styles (see Introduction).
Usage
import ProgressRing from '@/components/ui/ProgressRing.pzl';
<ProgressRing value={ 73 } />Sizes
Colors
Thickness
Arc only
Accessibility
The root carries role="progressbar" with aria-valuemin, aria-valuemax, and aria-valuenow (the clamped value), so assistive tech announces real progress.
The SVG and the centered percentage are aria-hidden — they visually duplicate the value — leaving label as the accessible name. Always pass a descriptive label; on rings under 88px it is name-only, and on larger rings it also renders as a caption under the percentage.