هل تعلم؟dyk.si

حلقة التقدّم Progress Ring (Circular Progress)

دائرة تمتلئ بنسبة معيّنة والرقم في وسطها، مثل نسبة إنجاز المشروع.

يُعرف أيضاً باسم: Circular Progress

<svg> + stroke-dasharray / role="progressbar"

متى تستخدمه

لنسب الإنجاز في مساحة صغيرة.

خطأ شائع

لأكثر من رقم واحد، الشريط أوضح.

إمكانية الوصول

Expose the value with aria-valuenow, not just the drawing.

اسمه في الكود

HTML/CSS<svg> + stroke-dasharray / role="progressbar"
React<Progress type="circle">
Jetpack ComposeCircularProgressIndicator(progress = { })
SwiftUIGauge / ProgressView(.circular)

برومبت جاهز لوكيل البرمجة

Add a Progress Ring (Circular Progress) to this screen. What it is: A circle that fills to a percentage with the number in the middle, like project completion. Implement with: <svg> + stroke-dasharray / role="progressbar" (HTML/CSS). Accessibility: Expose the value with aria-valuenow, not just the drawing. When to use it: For completion percentages in tight spaces. Avoid: For comparing several values, bars are clearer. Reuse the project's existing design tokens, spacing and component conventions.

أو ركّب صفحة كاملة من هذا العنصر وغيره →

البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.