خانة رقم الهاتف Phone Number Input
حقل رقم فيه قائمة صغيرة لعلم الدولة ومفتاحها قبل الرقم.
<input type="tel" autocomplete="tel">متى تستخدمه
في التسجيل والطلبات عندما يكون الجمهور من عدة دول.
خطأ شائع
لا تفرض صيغة واحدة للرقم.
إمكانية الوصول
Use type=tel so the numeric keypad and autofill appear.
اسمه في الكود
| HTML/CSS | <input type="tel" autocomplete="tel"> |
|---|---|
| React | react-phone-number-input |
| Jetpack Compose | OutlinedTextField + KeyboardType.Phone |
| SwiftUI | TextField + .keyboardType(.phonePad) |
برومبت جاهز لوكيل البرمجة
Add a Phone Number Input to this screen.
What it is: A phone field with a small country flag and dial-code picker before the number.
Implement with: <input type="tel" autocomplete="tel"> (HTML/CSS).
Accessibility: Use type=tel so the numeric keypad and autofill appear.
When to use it: In sign-up and orders with an international audience.
Avoid: Don’t force one rigid number format.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.