0.0.28 • Published 6 years ago

react-code-field v0.0.28

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

react-code-field

A predictable input field for codes, PIN codes, promotional codes, and the like.

WARNING

Still in alpha version, api changes every update, don't use in production

Props:

PropertyType
fieldsnumber
type?string
initialValuestring
className?string
inputClassName?string
listBannedChars?string[]
forceUpperCase?boolean
autoFocus?boolean
onChange?func
onLastChange?func

TODO:

  • add character filtering
  • add the ability to call callback when the last input is changed
  • add the ability to set a initial value
  • add the ability to force characters to uppercase
  • add the ability to integrate with formik and other form managers
  • add the ability to turn autofocus on and off
  • add typescript support
  • write functional tests
  • write unit tests
  • create live demo
  • create complete README

If you have questions or suggestions, create a issue.

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.1

6 years ago