Input OTP
Collect a six-digit code in one input with mobile autofill.
Enter the six digits from your authenticator.
HTML
<div class="rl-scope" data-rl-scope>
<div class="rl-field">
<label class="rl-label" for="demo-otp">Verification code</label>
<input class="rl-input rl-input-otp" id="demo-otp" type="text" aria-describedby="demo-otp-hint" name="otp" inputmode="numeric" autocomplete="one-time-code" pattern="[0-9]{6}" maxlength="6" placeholder="000000">
<p class="rl-description" id="demo-otp-hint">Enter the six digits from your authenticator.</p>
</div>
</div>A single field supports paste and full-code autofill.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>