1.0.3 • Published 5 years ago

react-vcode-input v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

React Code Input

An input component for inputting verification codes for react

license npm version npm issues npm forks npm stars

To use

$ npm i --save react-vcode-input

Usage

import VcodeInput from 'react-vcode-input';

<CodeInput
 fields={6}
 autoFocus
 onFinished={onValueChange}
 inputStyle={{
  marginTop: 0,
	backgroundColor: "transparent",
	marginLeft: "4px"
 }}
/>

Props

PropertyTypeDescription
fieldsnumberCode length
autoFocusboolInput gets focus automatically
onFinished(value: string) => voidCallback function at the end of all input
inputStyleobjectStyle of item

License

MIT

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago