@@ -51,23 +51,29 @@ export default function App() {
5151
5252### Props
5353
54- | Key | Type | Default | Required | Description |
55- | ----------- | ------------------------ | ------------ | -------- | -------------------------------------------------- |
56- | autoFocus | ` boolean ` | false | false | Should focus on first render |
57- | length | ` number ` | ` 4 ` | false | How many inputs will be rendered |
58- | onChange | ` function ` | ` () => null ` | false | Function called when the value changes |
59- | onCompleted | ` function ` | ` () => null ` | false | Function called when the value is completed |
60- | placeholder | ` string ` | ` · ` | false | Inputs placeholder |
61- | value | ` string ` | ` "" ` | false | Default value |
62- | type | ` 'alphanumeric, number' ` | ` number ` | false | Should accepts alphanumeric values or only numbers |
54+ | Key | Type | Default | Required | Description |
55+ | ----------- | ---------------------------------------------- | ------------ | -------- | -------------------------------------------------- |
56+ | autoFocus | ` boolean ` | false | false | Should focus on first render |
57+ | inputProps | ` React.InputHTMLAttributes<HTMLInputElement>; ` | ` undefined ` | false | Allow passing custom props into the inputs |
58+ | length | ` number ` | ` 4 ` | false | How many inputs will be rendered |
59+ | onChange | ` function ` | ` () => null ` | false | Function called when the value changes |
60+ | onCompleted | ` function ` | ` () => null ` | false | Function called when the value is completed |
61+ | placeholder | ` string ` | ` · ` | false | Inputs placeholder |
62+ | value | ` string ` | ` "" ` | false | Default value |
63+ | type | ` 'alphanumeric, number' ` | ` number ` | false | Should accepts alphanumeric values or only numbers |
6364
6465### Custom Styles
6566
6667Simply override the styles using the following classnames
6768
6869``` css
69- .ReactInputVerificationCode-container {}
70- .ReactInputVerificationCode-item {}
70+ .ReactInputVerificationCode-container {
71+ /* */
72+ }
73+
74+ .ReactInputVerificationCode-item {
75+ /* */
76+ }
7177```
7278
7379## License
0 commit comments