antd-hz
Version:
华卓科技基于 antd 5.0 定制的组件库
11 lines (10 loc) • 452 B
TypeScript
import * as React from 'react';
import type { InputProps, InputRef } from '../Input';
export interface OTPInputProps extends Omit<InputProps, 'onChange'> {
index: number;
onChange: (index: number, value: string) => void;
/** Tell parent to do active offset */
onActiveChange: (nextIndex: number) => void;
}
declare const OTPInput: React.ForwardRefExoticComponent<OTPInputProps & React.RefAttributes<InputRef>>;
export default OTPInput;