验证码输入
N 个独立格子输验证码,输满自动跳格、支持粘贴整串,登录/支付验证常用。
实现提示词
6-box OTP input for SMS codes: auto-advances while typing, auto-submits when full, supports paste.OTP input with caret auto-advance animation, digit pop-in per box, shake on error; auto-submits when full.设计规范条目
### OTP Input (#otp) Category: Forms OTP: N independent boxes for entering a verification code, auto-advancing on fill and supporting paste of the full string—common for login/payment verification. - Do: 6-box OTP input for SMS codes: auto-advances while typing, auto-submits when full, supports paste With motion: OTP input with caret auto-advance animation, digit pop-in per box, shake on error; auto-submits when full. Live demo: https://uidesignmd.com/guides/otp/