زر الأيقونة Icon Button
زر يحمل أيقونة فقط دون نص، مثل القلب أو المشاركة أو الحذف.
<button aria-label="…">متى تستخدمه
للعمليات المألوفة التي أيقونتها واضحة.
خطأ شائع
لا تستخدمه لعمليات أيقونتها غير مفهومة.
إمكانية الوصول
Every icon button needs an accessible name and a 44px touch target.
اسمه في الكود
| HTML/CSS | <button aria-label="…"> |
|---|---|
| React | <IconButton> |
| Jetpack Compose | IconButton / FilledIconButton |
| SwiftUI | Button { Image(systemName:) } |
برومبت جاهز لوكيل البرمجة
Add a Icon Button to this screen.
What it is: A button showing only an icon with no text, like heart, share or delete.
Implement with: <button aria-label="…"> (HTML/CSS).
Accessibility: Every icon button needs an accessible name and a 44px touch target.
When to use it: For familiar actions with obvious icons.
Avoid: Not for actions whose icons are ambiguous.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.