@@ -23,6 +23,7 @@ A verification code input, autocompletion friendly
2323 "styled-components": ">=5.0.0"
2424}
2525```
26+
2627## Install
2728
2829``` bash
@@ -48,16 +49,15 @@ export default function App() {
4849
4950### Props
5051
51- | Key | Type | Default | Required | Description |
52- | ----------- | ---------- | ---------- | -------- | --------------------------------------------------------- |
53- | autoFocus | ` boolean ` | false | false | Focus on render |
54- | length | ` number ` | ` 4 ` | false | How many items will be rendered |
55- | onChange | ` function ` | ` () => {} ` | false | Function called when the value changes |
56- | onCompleted | ` function ` | ` () => {} ` | false | Function called when the code is completed |
57- | placeholder | ` string ` | ` · ` | false | String rendered in each item when no value has been typed |
58- | value | ` string ` | ` () => {} ` | false | Control internal input value |
59- | type | ` text ` or ` password ` | ` text ` | false | Display the item value or a password mask |
60- | passwordMask | ` string ` | ` • ` | false | Password mask |
52+ | Key | Type | Default | Required | Description |
53+ | ----------- | -------------------- | ---------- | -------- | --------------------------------------------------------- |
54+ | autoFocus | ` boolean ` | false | false | Focus on render |
55+ | length | ` number ` | ` 4 ` | false | How many items will be rendered |
56+ | onChange | ` function ` | ` () => {} ` | false | Function called when the value changes |
57+ | onCompleted | ` function ` | ` () => {} ` | false | Function called when the code is completed |
58+ | placeholder | ` string ` | ` · ` | false | String rendered in each item when no value has been typed |
59+ | value | ` string ` | ` () => {} ` | false | Control internal input value |
60+ | type | ` text ` or ` password ` | ` text ` | false | Display the item value or a password mask |
6161
6262### CSS Properties
6363
0 commit comments