Did you know?dyk.si

OTP Input (Verification Code)

A row of small boxes, one digit each, for the code you received by SMS or email.

Also known as: Verification Code

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

When to use it

For verifying a phone or email.

Common mistake

Don’t make each box a separate input; it breaks paste.

Accessibility

Use one real input so paste and SMS autofill work.

Name in code

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

Ready prompt for your coding agent

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.

Or compose a whole page from this element and others →

Prompts are in English for the most precise results with coding agents.