Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A ring that fills toward a goal, with the value in its center.
npx shadcn@latest add ikislay/pixel-ui/radial-progressimport { RadialProgress } from "@/components/ui/radial-progress"export function Demo() {return <RadialProgress label="Storage used" value={72} caption="of 50 GB" />}
1// Loading…
Options you can pass to customize this component.
value*numberThe current value. It is clamped between 0 and max.
maxnumberThe value that fills the ring.
label*stringNames the meter for screen readers.
captionstringA short line under the value.
format(value: number) => stringFormats the center value. Without it the ring shows a percentage.
colorstringAny CSS color for the filled part of the ring.
thicknessnumberWidth of the ring, on a 100 unit wide meter.
classNamestringMerged onto the root element.