@comparaonline/ui-input-helpers
v3.0.0
Published
Utility helpers to improve the input, using the native HTML attributes like `autocomplete` and `inputmode`
Downloads
40
Maintainers
Keywords
Readme
@comparaonline/ui-input-helpers
Utility helpers to improve the input, using the native HTML attributes like autocomplete
and inputmode
Installation
yarn add @comparaonline/ui-input-helpers
Usage
import { AutoCompleteProps, InputModeProps } from '@comparaonline/ui-input-helpers';
const inputProps = {
...InputModeProps.numeric,
...AutoCompleteProps.email
}
const Input = (props) => (
<input {...inputProps} {...prop} />
);