Skip to content

API reference > @kontsedal/olas-react > UseFieldInputResult

UseFieldInputResult type ​

Props useFieldInput returns, ready to spread onto a native input.

Signature:

typescript
type UseFieldInputResult = {
  value: string;
  onChange: (e: ChangeEvent<{
    value: string;
  }>) => void;
  onBlur: () => void;
  name: string | undefined;
  'aria-invalid': boolean | undefined;
};

Released under the MIT License.