@comparaonline/ui-input-helpers

Utility helpers to improve the input, using the native HTML attributes like autocomplete and inputmode

Usage no npm install needed!

<script type="module">
  import comparaonlineUiInputHelpers from 'https://cdn.skypack.dev/@comparaonline/ui-input-helpers';
</script>

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} />
);