pnpm dlx shadcn@latest add https://ui.saturation.io/r/circular-progress.jsonimport { CircularProgress } from "@/components/ui/circular-progress"<CircularProgress value={75} showLabel />| Prop | Type | Default | Description |
|---|---|---|---|
value | number | — | The progress value (0–100). |
size | number | 100 | The diameter of the circle in pixels. |
strokeWidth | number | — | Sets both circle and progress stroke width. |
circleStrokeWidth | number | 10 | The stroke width of the background circle. |
progressStrokeWidth | number | — | The stroke width of the progress arc. |
shape | "square" | "round" | "round" | The shape of the progress stroke cap. |
showLabel | boolean | false | Whether to show the percentage label in the center. |
renderLabel | (progress: number) => React.ReactNode | — | Custom render function for the center label. |
className | string | — | Additional CSS classes for the wrapper. |
progressClassName | string | — | Additional CSS classes for the progress arc. |
labelClassName | string | — | Additional CSS classes for the label. |
On This Page