Skip to content

Commit f37d065

Browse files
author
ugogo
committed
update README.md
1 parent f6e492c commit f37d065

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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

4860
MIT © [ugogo](https://github.com/ugogo)

0 commit comments

Comments
 (0)