Goal Ring

A circular progress ring that shows how far along a goal is, with the percentage in the middle and a caption below. Handy for fitness, sales or weekly targets.

src/registry/ui/goal-ring.tsx/r/goal-ring.json
72%

Weekly goal

Goal

Installation#

bash
npx shadcn@latest add @minidev/goal-ring

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/goal-ring.json

Usage#

tsx
import { GoalRing } from "@/components/ui/goal-ring"

export function Example() {
  return (
    <GoalRing />
  )
}

API reference#

GoalRing props
PropTypeDefault
valuenumber72
labelstring"Weekly goal"
classNamestring-

Examples#

All dashboard components