Progress Ring Stats
Three key percentages as progress rings with labels and context.
Installation
npx shadcn@latest add @venusui/stats-02Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Files added to your project
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/progress-ring.tsxfrom progress-ring@/components/stats-02.tsx
Usage
The code behind the preview above.
stats-02-demo.tsx
import { Stats02 } from "@/components/stats-02"
export default function Stats02Demo() {
return <Stats02 />
}
API reference
No props. Figures are in the stats array at the top of the file.
Requirements
- VenusUI
progress-ring(the CLI installs it), React 19 and Tailwind CSS v4. Works in Server Components.
Customization
- The figures are placeholders. Use real numbers and say where they come from in
detail. - Ring size and thickness are set per ring with
sizeandstrokeWidth.
Accessibility
- Each ring is a labelled progress bar with its value, so screen readers announce “Customer satisfaction, 98%”.
Troubleshooting
- Rings look cramped on tablets.
- Cards stack below
md; reducesizeif your labels are long. Unknown registry "@venusui"- Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (
npx shadcn@latest), install by URL, or register it with its address:npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json. No components.json found- Run
npx shadcn@latest initin your project first.