/input-component

Input component for React

Primary LanguageTypeScript

A React Input (field) component

Properties

  • label (mandatory)
  • error to highlight erroneous fields
  • helperText to display explanatory text below field
  • disabled to display field as disabled
  • startIcon and endIcon to pass Material icons as strings
  • Three options for size: sm, md, lg
  • fullWidth to span whole width of parent container
  • multiLine to use textarea instead of regular input field
  • All regular input attributes also accessible