04
Content
- Say where the code was sent, and for how long it lasts.
- Offer a new code in words: "Send a new code".
- Errors say what to do: "That code has expired. Send a new one."
A one-time code in slots. Paste fills them all; the phone's SMS autofill lands in one go.
<input> per slotServer-rendered01
02
field-label<label>Names the slots' group, and the first slot.otp-input<div role="group">The slots, sharing the width; they shrink to fit.otp-input-slot<input>One character; the others say where they are: "Character 2 of 6".03
04