هل تعلم؟dyk.si

جدول البيانات Data Table

صفوف وأعمدة من السجلات، تنقر على عنوان العمود لترتّب حسبه.

<table> + <th aria-sort>

متى تستخدمه

لبيانات تريد مقارنتها وترتيبها: الفواتير، أو الكميات.

خطأ شائع

على الهاتف، حوّل الصفوف إلى بطاقات.

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

Use real table markup with header cells and aria-sort.

اسمه في الكود

HTML/CSS<table> + <th aria-sort>
ReactTanStack Table / <DataTable>
Jetpack ComposeLazyColumn + Row (no built-in table)
SwiftUITable

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

Add a Data Table to this screen. What it is: Rows and columns of records; click a column header to sort. Implement with: <table> + <th aria-sort> (HTML/CSS). Accessibility: Use real table markup with header cells and aria-sort. When to use it: For data people compare and sort: invoices, quantities. Avoid: On mobile, turn rows into cards. Reuse the project's existing design tokens, spacing and component conventions.

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

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

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

⇄ Card أم List Item أم Data Table؟