Atelier UI

搜索组件…

搜索组件…

Circular Progress

SVG 环形进度,中心显示百分比,可调尺寸、粗细与颜色。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

CircularProgressProps

同时支持以下类型的全部属性: Omit<React.ComponentProps<"div">, "children">

属性类型默认值说明
value* 必填number—0 - 100
sizenumber96Outer diameter in px
thicknessnumber8Stroke width in px
colorstring"text-primary"Tailwind text color class for the arc, e.g. "text-emerald-500". Defaults to text-primary.
childrenReact.ReactNode—Replace the default percent text in the center.
showValuebooleantrue—
labelstring"Progress"—

安装

$ npx shadcn@latest add https://chromotion.dev/r/circular-progress.json

同类组件