Setting the input field “type” auto-selects the suitable keyboard in mobile devices, improving user experience.
Input component props| Name | Type | Usage |
|---|---|---|
.. | All input element props | |
prefix | string | |
onPrefixClick | function | |
suffix | string | |
onSuffixClick | function | |
onValue | function | Better alternative of onChange listener (value) => void. No need to do e.target.value |
maxLength | number | Maximum characters allowed |
parentClassName | string | To add class on wrapper div |
parentStyle | object | To add styling on wrapper div |