One-time code

One cell per character. Auto-advance, backspace, paste.

npx raster add input-otp
<div class="rs-otp"><input maxlength="1" value="8" /><input maxlength="1" value="2" /><input maxlength="1" /><input maxlength="1" /></div>
import { InputOTP } from "@/components/raster/input-otp";

<InputOTP length={6} onComplete={(code) => verify(code)} />
.rs-otp