0.0.28 • Published 5 years ago

react-code-field v0.0.28

Weekly downloads
2
License
MIT
Repository
github
Last release
5 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

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.1

5 years ago