الترقيم Pagination
أزرار مرقّمة تحت القائمة تنقلك بين صفحات النتائج.
<nav aria-label="pagination">متى تستخدمه
لنتائج كثيرة تريد أن يتمكن المستخدم من العودة إلى موضع معيّن فيها.
خطأ شائع
للمحتوى الاجتماعي، «تحميل المزيد» أو التمرير اللانهائي أنسب.
إمكانية الوصول
Mark the current page with aria-current="page" and label Next and Previous.
اسمه في الكود
| HTML/CSS | <nav aria-label="pagination"> |
|---|---|
| React | <Pagination> |
| Jetpack Compose | Custom Row (no built-in) |
| SwiftUI | Custom HStack (no built-in) |
برومبت جاهز لوكيل البرمجة
Add a Pagination to this screen.
What it is: Numbered buttons under a list that move between pages of results.
Implement with: <nav aria-label="pagination"> (HTML/CSS).
Accessibility: Mark the current page with aria-current="page" and label Next and Previous.
When to use it: For long result sets people need to return to.
Avoid: For social feeds, "Load more" or infinite scroll fits better.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.