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
Nested rings that each close toward their own goal.
npx shadcn@latest add ikislay/pixel-ui/activity-ringsimport { ActivityRings } from "@/components/ui/activity-rings"const data = [{ label: "Move", value: 420, max: 600 },{ label: "Exercise", value: 24, max: 30 },{ label: "Stand", value: 9, max: 12 },]export function Demo() {return <ActivityRings label="Today's goals" data={data} />}
1// Loading…
Options you can pass to customize this component.
data*{ label: string; value: number; max?: number; color?: string }[]One ring per entry, outermost first. Max defaults to 100.
label*stringNames the chart for screen readers and captions its data table.
format(value: number) => stringFormats each value and goal in the list. Defaults to whole numbers.
thicknessnumberWidth of each ring, on a 200 unit wide chart.
classNamestringMerged onto the root element.