هل تعلم؟dyk.si

خانات رمز التحقق OTP Input (Verification Code)

صف من المربعات الصغيرة، في كل مربع رقم واحد، تكتب فيها الرمز الذي وصلك برسالة.

يُعرف أيضاً باسم: Verification Code

<input autocomplete="one-time-code" inputmode="numeric">

متى تستخدمه

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

خطأ شائع

لا تجعل كل مربع حقلاً منفصلاً؛ فهذا يعطّل اللصق.

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

Use one real input so paste and SMS autofill work.

اسمه في الكود

HTML/CSS<input autocomplete="one-time-code" inputmode="numeric">
React<InputOTP>
Jetpack ComposeBasicTextField (custom boxes)
SwiftUITextField + .textContentType(.oneTimeCode)

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

Add a OTP Input (Verification Code) to this screen. What it is: A row of small boxes, one digit each, for the code you received by SMS or email. Implement with: <input autocomplete="one-time-code" inputmode="numeric"> (HTML/CSS). Accessibility: Use one real input so paste and SMS autofill work. When to use it: For verifying a phone or email. Avoid: Don’t make each box a separate input; it breaks paste. Reuse the project's existing design tokens, spacing and component conventions.

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

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