هل تعلم؟dyk.si

الحالة الفارغة Empty State

ما يظهر حين لا يوجد محتوى بعد: رسم توضيحي، وجملة، وزر يتيح لك البدء.

<section> (pattern)

متى تستخدمه

عند فتح المستخدم قسماً فارغاً للمرة الأولى، أو عند بحث بلا نتائج.

خطأ شائع

لا تكتفِ بـ «لا توجد بيانات»؛ أخبره بما عليه فعله.

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

Always offer the next action, not just a message.

اسمه في الكود

HTML/CSS<section> (pattern)
React<Empty> (custom)
Jetpack ComposeCustom Column
SwiftUIContentUnavailableView

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

Add a Empty State to this screen. What it is: What appears when there is no content yet: an illustration, one line, and a button to start. Implement with: <section> (pattern) (HTML/CSS). Accessibility: Always offer the next action, not just a message. When to use it: The first visit to an empty section, or a search with no results. Avoid: Don’t stop at "No data"; tell people what to do next. Reuse the project's existing design tokens, spacing and component conventions.

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

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

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

⇄ Empty State أم Skeleton أم Error Page؟