{"slug":"codeinput","mode":"single","examples":[{"id":"codeinput-ex-1","title":"基础用法","titleSrc":"","desc":"","html":"
\n

CodeInput 验证码输入

\n

用于短信验证码、一次性口令(OTP)输入,支持自动跳转、退格回退与粘贴填充。

\n
\n
基础用法(6 位)
\n
\n
\n
\n
\n
掩码模式 + 4 位
\n
\n
\n
\n
","preview":{"show":[[0]],"hide":[],"mode":"single"},"previewSafe":true,"previewUnsafeReasons":[],"source":"demo-mapped","code":{"html":"

CodeInput 验证码输入

\n

用于短信验证码、一次性口令(OTP)输入,支持自动跳转、退格回退与粘贴填充。

\n
基础用法(6 位)
\n
\n
\n
掩码模式 + 4 位
\n
\n
","jsx":"import { KoleCodeInput } from 'kole-ui/react';\n\n<>\n\n\n","vue3":"import { KoleCodeInput } from 'kole-ui/vue3';\n\n","vue2":"import { KoleCodeInput } from 'kole-ui/vue2';\n\n"},"notes":[]}]}