هل تعلم؟dyk.si

شريط التقدّم Progress Bar

خط يمتلئ من البداية إلى النهاية، ويبيّن كم أُنجز من العمل.

<progress value max>

متى تستخدمه

لرفع الملفات أو التثبيت أو أي عمل تعرف نسبة إنجازه.

خطأ شائع

لا تدع النسبة تتراجع إلى الخلف، فتخسر ثقة المستخدم.

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

Expose the percentage; switch to a spinner when progress can’t be measured.

اسمه في الكود

HTML/CSS<progress value max>
React<Progress value>
Jetpack ComposeLinearProgressIndicator(progress = { })
SwiftUIProgressView(value:)

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

Add a Progress Bar to this screen. What it is: A bar that fills from start to end to show how much work is complete. Implement with: <progress value max> (HTML/CSS). Accessibility: Expose the percentage; switch to a spinner when progress can’t be measured. When to use it: For uploads, installs, anything you can measure. Avoid: Never let the percentage go backwards; it destroys trust. Reuse the project's existing design tokens, spacing and component conventions.

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

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

يُخلَط بينه وبين عناصر أخرى؟

⇄ Spinner أم Skeleton أم Progress Bar؟