You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+34-15Lines changed: 34 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# React Auth Code Input
4
4
5
-
> A React Component for inputting Auth Codes inspired in Apple Two-Factor Authentication UI. You can type, paste and move backwards using the backspace.
|`allowedCharacters`| String | Type of allowed characters for your code. |`alphanumeric`|`alpha`, `alphanumeric`, `numeric`|
57
+
|`ariaLabel`| String | Accessibility. |||
58
+
|`length`| Number | The number of inputs to display. | 6 ||
59
+
|`containerClassName`| String | The styles to be applied to the container. |||
60
+
|`inputClassName`| String | The styles to be applied to each input. |||
61
+
|`onChange`| Function(value: String) | Callback function called every time an input value changes. |||
62
+
|`isPassword`| Boolean | Whether to display the inputs as passwords or not. | false ||
66
63
67
64
## Changelog
68
65
66
+
### 3.0.0
67
+
68
+
- Change the way the allowed characters are handled by using 3 predefined modes: alpha, alphanumeric, and numeric, allowing to have more control when validating the values introduced in the inputs.
69
+
- Improved logic.
70
+
- Improved tests.
71
+
- Improved types.
72
+
69
73
### 2.1.0
70
74
71
75
- Support to fill one-time-codes directly from SMS's.
@@ -96,6 +100,21 @@ const App = () => {
96
100
97
101
- Initial Version.
98
102
103
+
## Props versions 1 and 2
104
+
105
+
| Prop | Type | Description | Default Value | Observations |
0 commit comments