UNPKG

react-pin-input

Version:
26 lines (22 loc) 760 B
declare module 'react-pin-input' { import * as React from 'react'; type InputType = 'numeric' | 'custom'; interface PinInputProps { length: number; initialValue?: number|string; type?: InputType; secret?: boolean; focus?: boolean; onChange?: (value: string, index: number) => void; onComplete?: (value: string, index: number) => void; style?: React.CSSProperties; inputStyle?: React.CSSProperties; inputFocusStyle?: React.CSSProperties; validate?: (value: string) => string; } class PinInput extends React.Component<PinInputProps> { clear: () => void; focus: () => void; } export default PinInput; }