File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,24 @@ export default function App() {
3737
3838## API
3939
40+ ### Props
41+
4042| Key | Type | Default | Required | Description |
4143| ----------- | ---------- | ------- | -------- | --------------------------------------------------------- |
4244| length | ` number ` | ` 4 ` | false | How many items will be rendered |
4345| onChange | ` function ` | | true | Function called when the value changes |
4446| placeholder | ` string ` | ` · ` | false | String rendered in each item when no value has been typed |
4547
48+ ### CSS Properties
49+
50+ The following CSS properties are set globally so you can easily override them to fit your needs
51+
52+ | Key | Default | Description |
53+ | ------------------------------------------ | -------- | ----------------------- |
54+ | ` --ReactInputVerificationCode-itemWidth ` | ` 4.5rem ` | Width of an item |
55+ | ` --ReactInputVerificationCode-itemHeight ` | ` 5rem ` | Height of an item |
56+ | ` --ReactInputVerificationCode-itemSpacing ` | ` 1rem ` | Space between two items |
57+
4658## License
4759
4860MIT © [ ugogo] ( https://github.com/ugogo )
You can’t perform that action at this time.
0 commit comments