Skip to content
This repository was archived by the owner on Nov 3, 2024. It is now read-only.

Commit e5976bc

Browse files
committed
Bump version
1 parent 0065d3a commit e5976bc

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

Diff for: README.md

+16-13
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ yarn add react-auth-code-input
2828
## Usage
2929

3030
```jsx
31-
import React from 'react'
32-
import AuthCode from 'react-auth-code-input'
31+
import React from 'react';
32+
import AuthCode from 'react-auth-code-input';
3333

3434
const App = () => {
3535
return (
@@ -49,24 +49,27 @@ const App = () => {
4949
textTransform: 'uppercase'
5050
}}
5151
/>
52-
)
53-
}
52+
);
53+
};
5454
```
5555

56-
5756
### Props
5857

59-
| Prop | Type | Description | Default Value |
60-
| :--- | :--- | :--- | :--- |
61-
| `characters` | Number | The number of inputs to display | 6 |
62-
| `allowedCharacters` | String | Regex for allowed characters | `^[A-Za-z0-9]` |
63-
| `password` | Boolean | If present changes the type of the input to password, by default is set to text | False |
64-
| `inputStyle` | Object | The styles to be applied to each input | |
65-
| `containerStyle` | Object | The styles to be applied to each input | |
66-
| `onChange` | Function(value: String) | Callback function called every time an input value changes | |
58+
| Prop | Type | Description | Default Value |
59+
| :------------------ | :---------------------- | :------------------------------------------------------------------------------ | :------------- |
60+
| `characters` | Number | The number of inputs to display | 6 |
61+
| `allowedCharacters` | String | Regex for allowed characters | `^[A-Za-z0-9]` |
62+
| `password` | Boolean | If present changes the type of the input to password, by default is set to text | False |
63+
| `inputStyle` | Object | The styles to be applied to each input | |
64+
| `containerStyle` | Object | The styles to be applied to each input | |
65+
| `onChange` | Function(value: String) | Callback function called every time an input value changes | |
6766

6867
## Changelog
6968

69+
### 1.1.0
70+
71+
- Typescript support.
72+
7073
### 1.0.0
7174

7275
- Initial Version.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-auth-code-input",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "A React Component for inputting Auth Codes inspired in Apple Two-Factor Authentication UI. It allows deleting using the backspace and pasting as well",
55
"author": "drac94",
66
"license": "MIT",

0 commit comments

Comments
 (0)