watercolor-ui
Version:
A modern minimalist cross-framework component library
26 lines • 973 B
TypeScript
export default VerificationCodeInput;
/**
* VerificationCodeInput 组件
* 用于输入定长验证码 / 短信验证码 / 授权码等。
*
* Props
* - length 验证码长度,默认 6
* - value 受控值字符串
* - onChange 输入变化时触发 (value: string) => void
* - onComplete 输入达到 length 时触发 (value: string) => void
* - autoFocus 是否在挂载时自动聚焦第一个输入框
* - className 额外的自定义类名
*/
declare function VerificationCodeInput({ length, value, onChange, onComplete, autoFocus, className, ...rest }: {
[x: string]: any;
length?: number | undefined;
value?: string | undefined;
onChange: any;
onComplete: any;
autoFocus?: boolean | undefined;
className?: string | undefined;
}): import("react/jsx-runtime").JSX.Element;
declare namespace VerificationCodeInput {
let displayName: string;
}
//# sourceMappingURL=VerificationCodeInput.d.ts.map