Progress Ring

An Apple-inspired progress ring component with animated radial bars for tracking multiple metrics.

Category: ComponentsVersion: 1.0.0

1,245
Steps

Props

PropTypeDefaultDescription
dataActivityData[][ { name: "Move", value: 650, goal: 1000, fill: "#FF3B30" }, { name: "Exercise", value: 28, goal: 30, fill: "#32D74B" }, { name: "Stand", value: 10, goal: 12, fill: "#627fe8" } ]Array of activity data objects. Each object should have: name (string), value (number), goal (number), fill (color string), and optional icon (string) and animate (boolean).
sizenumber400The width and height of the component in pixels.
showCenterbooleantrueWhether to display the center metric.
centerMetricobject{ value: "2,847", label: "Steps", sublabel: "Today" }The metric displayed in the center. Object with value (string or number), label (string), and optional sublabel (string).
classNamestring—Additional CSS classes to apply to the component container.