Skip to content

Commit

Permalink
Merge pull request #209 from XavierDefontaine/chore/add-optional-secr…
Browse files Browse the repository at this point in the history
…et-delay

Chore/add optional secret delay
  • Loading branch information
arunghosh authored Feb 28, 2023
2 parents 0752e71 + 67f1d96 commit 01da3e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import PinInput from 'react-pin-input';
<PinInput
length={4}
initialValue=""
secret
secret
secretDelay={100}
onChange={(value, index) => {}}
type="numeric"
inputMode="number"
Expand All @@ -47,6 +48,7 @@ import PinInput from 'react-pin-input';
||| if ```numeric```, the input will take only numbers|
||| if ```custom```, the input will take other than numbers|
|secret|boolean|If you set the ```secret``` attibute, the input will be hidden as shown below.
|secretDelay|number|If you set the ```secret``` attibute, then you can optionally add secretDelay ms to hide the inputs as you type.
|disabled|boolean|If you set the ```disable``` attibute, the input will be disabled.
|focus|boolean| Setting the ```focus``` attibute will set the default focus on the first input element.
|onChange|function|Callback function invoked on input change. The first parameter is the value and the second is the index of the input that is currently in focus|
Expand Down
Loading

0 comments on commit 01da3e9

Please sign in to comment.