القائمة المنسدلة Select (Dropdown)
حقل تنقر عليه فتنسدل منه قائمة خيارات، تختار واحداً منها فتُغلق.
يُعرف أيضاً باسم: Dropdown
<select> + <option>متى تستخدمه
لاختيار واحد من قائمة متوسطة (من ٥ إلى ١٥ خياراً).
خطأ شائع
للقوائم الطويلة جداً، الـ Combobox مع البحث أسرع.
إمكانية الوصول
Prefer the native <select> on mobile; custom versions must support type-ahead and arrow keys.
اسمه في الكود
| HTML/CSS | <select> + <option> |
|---|---|
| React | <Select> |
| Jetpack Compose | ExposedDropdownMenuBox + DropdownMenuItem |
| SwiftUI | Picker().pickerStyle(.menu) |
برومبت جاهز لوكيل البرمجة
Add a Select (Dropdown) to this screen.
What it is: A field that drops open a list of options; pick one and it closes.
Implement with: <select> + <option> (HTML/CSS).
Accessibility: Prefer the native <select> on mobile; custom versions must support type-ahead and arrow keys.
When to use it: For one choice from a medium list (five to fifteen options).
Avoid: For very long lists, a searchable combobox is faster.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.